zmoin / slapBot

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

Bugfix white/black list and added permissions #10

Closed nikkocampbell closed 5 years ago

nikkocampbell commented 5 years ago

Whitelist and blacklist were checking against the bot's ID instead of the ID of the message author. Changed that to check the right ID.

Also added in a basic permission system. Permissions stored in permissions.json as strings with an associated list of user IDs. Includes a stop command that can only be used by 'admin' role to gracefully disconnect the bot.