This repository was archived by the owner on May 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Console
medeor413 edited this page Sep 20, 2018
·
1 revision
This page lists the commands and configuration for the Console plugin.
allow_stdout_logging: Whether to let the logger print events to the console.
allow_stdout_errors: If allow_stdout_logging is False, allows ERROR-level log events to be printed to console.
-
help [command]: Lists the available console commands, or information on the specified command if given. -
guilds: Lists the guilds the bot is in, with numerical indices for use in commands. -
channels (guild index): Lists the channels in the specified guild, with numerical indices for use in commands. -
read (guild.channel) (count): Lists the lastcountmessages in the specified channel. -
say (guild.channel) (message): Sendsmessageto the specified channel. -
delete_msg (guild.channel) (message id): Deletes the message with the IDmessage idin the specified channel. -
get_config (path/to/config): Allows reading of configuration from command-line. Functions identically toGetConfigcommand; see it for details. -
set_config (path/to/config) (value): Allows editing of configuration from command-line. Functions identically toSetConfigcommand; see it for details. -
last_error (context): Displays the last error to occur in the specified context. Functions identically toLastErrorcommand; see it for details. -
exec (code): Runs the specified Python code in the plugin's context. -
shutdown: Shuts down Red Star.