thomasreichmann / full-bot

Bot do discord primariamente focado em musica, com desenvolvimento em twitch.tv/thomasar
GNU General Public License v3.0
2 stars 0 forks source link

Per command permission #11

Closed thomasreichmann closed 4 years ago

thomasreichmann commented 4 years ago

Add a authentication infrastructure for the commands, maybe using the permissions integer to determine if the user can use the command. Would also be interesting to be able to allow only specific users to use a command, so per userID authentication.

This should be done in a way to minimize the ammount of code added to each command. Most of the authentication should be handled on the onMessage event and the commands should only need to specify what permissions if any are required for the command.