zmoin / slapBot

a bot that slaps people on discord
1 stars 1 forks source link

Add a permission levels list #5

Closed Xulai closed 5 years ago

Xulai commented 5 years ago

In addition to the existing blacklist and whitelist, add a third list of key pairs so we can denote permission levels. example being having Zarrin set as admin being able to use special secret new commands, whereas everyone else is considered a default user who can't use special secret new commands.

zmoin commented 5 years ago

Working on that. For now, only .stop will be assigned to the admin, for example, and then we can come up with something more? Thanks to @lastplacer for walking me through the steps!

zmoin commented 5 years ago

Added that to the files. Permissions.json can be used to define that and a function in the slapbot.js is used to check for the permissions.