From a89ca3899a5931d7ea1ecfd82a034f830e6c47cd Mon Sep 17 00:00:00 2001 From: Martin Rys Date: Wed, 12 May 2021 16:30:53 +0200 Subject: [PATCH] Revert "Addcommand documentation" This reverts commit d6611e4158dd710438794fc93b3879c362534bf3. --- README.md | 4 ++-- bot/index.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5d71384..d954c24 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ Command | Role | Available at | Description `/ban ` | _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 ` | _Admin_ | _In-Bot_ | Create a custom command. Message used to add the command must not be deleted. Optional -replace flag. +`/addcommand ` | _Admin_ | _In-Bot_ | Create a custom command. `/removecommand ` | _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**: diff --git a/bot/index.js b/bot/index.js index d4589c1..169dbeb 100644 --- a/bot/index.js +++ b/bot/index.js @@ -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; } })