Skip to content
This repository was archived by the owner on May 8, 2022. It is now read-only.

Console

medeor413 edited this page Sep 20, 2018 · 1 revision

This page lists the commands and configuration for the Console plugin.

Configuration

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.

Console commands

  • 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 last count messages in the specified channel.
  • say (guild.channel) (message): Sends message to the specified channel.
  • delete_msg (guild.channel) (message id): Deletes the message with the ID message id in the specified channel.
  • get_config (path/to/config): Allows reading of configuration from command-line. Functions identically to GetConfig command; see it for details.
  • set_config (path/to/config) (value): Allows editing of configuration from command-line. Functions identically to SetConfig command; see it for details.
  • last_error (context): Displays the last error to occur in the specified context. Functions identically to LastError command; see it for details.
  • exec (code): Runs the specified Python code in the plugin's context.
  • shutdown: Shuts down Red Star.

Clone this wiki locally