refactored command responses to use a central place for configuration in an extra module

fixed makeAffected role parameter
made command check name case insensitive
added name to parameter for decayAllWarnings
removed simple log from message edited listener
This commit is contained in:
Sheldan
2020-04-30 22:29:49 +02:00
parent d5482fabd4
commit 59dc8c602a
312 changed files with 284 additions and 154 deletions

View File

@@ -0,0 +1 @@
Adds the mentioned channel to the channel group identified by the name.

View File

@@ -0,0 +1 @@
Allows the command or feature to be executed by everyone regardless of role.

View File

@@ -0,0 +1 @@
This causes the role checks for each command in the feature/for the given command to be disabled.

View File

@@ -0,0 +1 @@
Allows the given role to execute the commands in the given feature or the command.

View File

@@ -0,0 +1,4 @@
Allows the role to execute all commands in the given feature or the command directly.
In case the names coincide, the the feature will be taken first. The restriction of commands to certain roles is only in effect, if the command is restricted (see `restrict`).
When executing this command, the affected commands are automatically set to restricted.
The provided role can either be a role ID or a the mention of the role.

View File

@@ -0,0 +1 @@
Adds the given channelIds to the channel group of the given name.

View File

@@ -0,0 +1 @@
Adds the mentioned channel to the channel group identified by the name.

View File

@@ -0,0 +1,5 @@
Forbids the role to execute all commands in the given feature or the command directly.
Does nothing in case the role was not allowed in the first place.
In case the names coincide, the the feature will be taken first. The restriction of commands to certain roles is only in effect, if the command is restricted (see `restrict`).
When executing this command, the affected commands are automatically set to restricted.
The provided role can either be a role ID or a the mention of the role.

View File

@@ -0,0 +1 @@
The following features are available: ${featureString}

View File

@@ -0,0 +1 @@
Completely disables a feature for the server.

View File

@@ -0,0 +1,3 @@
Disables name of the given feature. If no feature is given, it will print the currently known features.
This does not work retroactively, and does not remove any date associated with the feature.
This will prevent commands of the feature being used.

View File

@@ -0,0 +1,2 @@
Makes it impossible to execute a command in a channel group.
A command is considered disabled for a given channel, if the command is disabled in all channel groups the channel is part of.

View File

@@ -0,0 +1 @@
Echos the input back to the same channel

View File

@@ -0,0 +1 @@
The following features are available: ${featureString}

View File

@@ -0,0 +1,2 @@
Used to enable a feature of the server. If no feature is passed, this will print all the currently known features.
This will make it possible that the commands contained in this feature will be executed again.

View File

@@ -0,0 +1,2 @@
Makes it possible to execute a command in a channel group.
A command is considered enabled for a given channel, if the command is enabled in one channel group the channel is part of.

View File

@@ -0,0 +1 @@
Lists all currently known features and their current status.

View File

@@ -0,0 +1 @@
This will print all the currently known features and whether they are enabled on this server or not.

View File

@@ -0,0 +1 @@
Provides help on how to use certain commands.

View File

@@ -0,0 +1,4 @@
Provides support on how to use the commands.
Gives an overview in which modules the commands are and what commands are available.
Displays descriptions about commands and detailed information how to use them.
If no parameter is provided, displays all the currently known modules and description.

View File

@@ -0,0 +1 @@
Use 'help <command name>' for a detailed overview of this command.

View File

@@ -0,0 +1 @@
Use 'help <module name>' for a list of commands of this module.

View File

@@ -0,0 +1 @@
This will list all the currently known channel groups and the respective channels contained in the group.

View File

@@ -0,0 +1,5 @@
Makes the given role affected by certain commands like `ban`, `warn` or `mute`.
When a feature name is used, all commands of this feature will be changed.
Not all commands actually support this functionality.
By default all roles are affected by the commands.
The provided role can either be a role ID or a the mention of the role.

View File

@@ -0,0 +1 @@
Makes a role immune against certain commands/complete features

View File

@@ -0,0 +1,5 @@
Makes the given role immune to certain commands like `ban`, `warn` or `mute`.
When a feature name is used, all commands of this feature will be changed.
Not all commands actually support this functionality.
By default all roles are affected by the commands.
The provided role can either be a role ID or a the mention of the role.

View File

@@ -0,0 +1 @@
Prints the latency between the bot and discord.

View File

@@ -0,0 +1 @@
Prints the time in milliseconds of the last heartbeat request.

View File

@@ -0,0 +1 @@
Sets the target of the given posts to a channel.

View File

@@ -0,0 +1,2 @@
Sets the target of the given posts to a channel. You have to mention the channel with #.
The available post targets will be printed when executed with no parameters.

View File

@@ -0,0 +1 @@
Removes the mentioned channel from the channel group identified by the name.

View File

@@ -0,0 +1,3 @@
Makes the command affected by role restrictions.
If a command is not restricted, any role is able to execute it, even though there are certain roles allowed to execute it.
If a feature name is given, all the commands in the feature are getting restricted.

View File

@@ -0,0 +1 @@
The bot uses certain when doing certain actions. This command can be used to redefine these emotes.

View File

@@ -0,0 +1 @@
Changes the value of a numerical value of the bots configuration

View File

@@ -0,0 +1 @@
Sets a numerical value in the bots configuration to the given value.

Some files were not shown because too many files have changed in this diff Show More