2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 05:07:49 +00:00

Revert "Addcommand documentation"

This reverts commit d6611e4158dd710438794fc93b3879c362534bf3.
This commit is contained in:
Martin Rys 2021-05-12 16:30:53 +02:00
parent f522ecd923
commit a89ca3899a
2 changed files with 3 additions and 3 deletions

View File

@ -66,7 +66,7 @@ Command | Role | Available at | Description
`/ban <reason>` | _Admin_ | _Groups_ | Bans the user from groups.
`/unban` | _Admin_ | _Everywhere_ | Removes the user from ban list.
`/user` | _Admin_ | _Everywhere_ | Shows the status of the user.
`/addcommand <name>` | _Admin_ | _In-Bot_ | Create a custom command. Message used to add the command must not be deleted. Optional -replace flag.
`/addcommand <name>` | _Admin_ | _In-Bot_ | Create a custom command.
`/removecommand <name>` | _Admin_ | _In-Bot_ | Remove a custom command.
`/staff` | _Everyone_ | _Everywhere_ | Shows a list of admins.
`/link` | _Everyone_ | _Everywhere_ | Shows the current group's link.
@ -82,7 +82,7 @@ If used by reply, `/ban` and `/warn` would remove the replied-to message.
## Plugins
The guard is extensible in form of plugins where custom features and commands can be easily added to it. To use a plugin, put it in the [/plugins](/plugins) directory and add its name to plugins array in config.js.
Checkout our [Plugins' Wiki](https://github.com/thedevs-network/the-guard-bot/wiki/Plugins) page for more information.
Checkout our [Plugins' Wiki](https://github.com/thedevs-network/the-guard-bot/wiki/Plugins) page for more information.
**Known plugins**:

View File

@ -18,7 +18,7 @@ if (process.env.NODE_ENV === 'development') {
module.exports = bot;
// Otherwise the bot can't ban on reaching max warns due to botInfo not being available to get its admin ID
// Elsewhere the bot can't ban on reaching max warns due to botInfo not being available to get its admin ID
Object.defineProperty(bot.context, "botInfo", {
get () { return bot.botInfo; }
})