Skip to content

Manager

GoldenDelicios edited this page Oct 2, 2021 · 2 revisions

ManagerListener is a special CommandListener that is primarily involved in managing other modules. The Manager can enable, disable, and reload modules, as well as temporarily prevent listeners from sending exception stack traces to the owners' DMs, as well as allow their retrieval on demand. The Manager is the only module that cannot be disabled through settings or the /disable command.

Commands

/shutdown

Shuts off Modbot. If running in a panel container, such as on Pterodactyl, the panel may restart the bot.

/disable

Syntax: /disable <module>
Disables a module, e.g. /disable reminder will disable the Reminder module. This runs the module's respective disable() method. Manager will not disable itself.

/enable

Same as /disable, but enables modules instead.

/modules

Lists all enabled and disabled modules, in alphabetical order.

/reload

Syntax: /reload [module]
If a module name is provided, reloads that module. Otherwise, reloads all modules. This runs the module's respective reload() method.

/exception

Syntax: /exception [index]
Sends the stack trace of the uncaught exception to DMs.
index is the index of the uncaught exception. This defaults to the last exception if this argument is omitted.

/dnd

Toggles "do not disturb" mode. If enabled, Modbot will not automatically DM stack traces of uncaught exceptions to the bot owners.
When this is enabled, /exception is the only way to retrieve stack traces through Discord.

Clone this wiki locally