bot.exts.utilities.internal#

Internal utilites.

Module Contents#

Classes#

Internal

Administrator and Core Developer commands.

Functions#

setup(→ None)

Load the Internal cog.

Attributes#

log

bot.exts.utilities.internal.log[source]#
class bot.exts.utilities.internal.Internal(bot: bot.bot.Bot)[source]#

Bases: discord.ext.commands.Cog

Administrator and Core Developer commands.

async on_socket_event_type(event_type: str) None[source]#

When a websocket event is received, increase our counters.

_format(inp: str, out: Any) tuple[str, discord.Embed | None][source]#

Format the eval output into a string & attempt to format it into an Embed.

async _eval(ctx: discord.ext.commands.Context, code: str) discord.Message | None[source]#

Eval the input code string & send an embed to the invoking context.

async internal_group(ctx: discord.ext.commands.Context) None[source]#

Internal commands. Top secret!.

async eval(ctx: discord.ext.commands.Context, *, code: str) None[source]#

Run eval in a REPL-like format.

async socketstats(ctx: discord.ext.commands.Context) None[source]#

Fetch information on the socket events received from Discord.

async bot.exts.utilities.internal.setup(bot: bot.bot.Bot) None[source]#

Load the Internal cog.