-
Notifications
You must be signed in to change notification settings - Fork 3
Configuring Plugins
The bot is fully modular and uses configurable plugins in order to provide the user with full control over the bot's features.
Each plugin includes 1 or more settings that the user can configure in order to get the bot working to their liking.
Plugins can have their own ID checks, OP level, and their own configuration fields.
Applies to: Discord Commands
Each plugin can be provided with multiple role/member IDs to check before executing a discord command. A member in a guild will only be able to execute the command if they pass the ID checks, i.e they are one of the members whose ID is provided or they have one of the roles whose ID is provided. ID checks set on the plugin level apply to every setting (discord commands) in the plugin, unless the setting provides its own ID checks, in which case those will be used instead.
Applies to: Server Commands
Each plugin can be given a default OP level requirement for each of its settings. A player in-game will only be able to execute the commands if they meet the required OP level. Similar to ID checks, the OP level set on the plugin is applied to all settings in the plugin unless the setting provides its own OP level, in which case that will be used instead.
A plugin can also have a global config that all of its settings can access. In addition, each setting can provide its own config that will be local to that setting.
Now that you understand the different types of configuration fields that a plugin and its settings can have, let's take a look at how to actually configure them.