ufosc / ALBot-2.0

Alpha version of ALBot 2.0, the spiritual successor to ALBot
GNU General Public License v3.0
4 stars 8 forks source link

Parametrize hard-code, privileged 'officer' role in roles.ts #20

Closed awhigham9 closed 2 years ago

awhigham9 commented 2 years ago

Currently, roles.ts assumes the presence of a role with name officer and gives this role privileged status. This could be an issue if other servers try to use the bot, or the bot is horizontally scaled to work on multiple servers.

Instead, a config variable should be added which stores the privileged role for the role management commands. The variable can be stored in config.json or another configuration file. Perhaps if the value is undefined, only the administrator role (which is server agnostic) is privileged.