'Active' fork of EmoteManager bot; Discord bot that lets you manage server emotes
Go to file
bmintz c5c6e7ef24 fix command error handling
so, i had a fundamental misunderstanding about how command errors work.
turns out the help command runs the checks for each function.
This ended up sending one "permission denied" message for each command in the Emotes cog,
*each time help was run*.

To fix this, __local_check needs to not have extra side effects.
I create one new exception, MissingManageServerEmojis, and raise it in case the user or bot is missing permissions.
I re-use NoPrivateMessages, since that's already a d.py exception.

Then I catch the errors in on_command_error, and send them to the user.
2018-07-31 02:38:14 -05:00
cogs fix command error handling 2018-07-31 02:38:14 -05:00
utils fix command error handling 2018-07-31 02:38:14 -05:00
.gitignore gitignore: ignore nano swap files 2018-07-29 23:02:45 -05:00
bot.py ignore bots 2018-07-30 02:36:23 -05:00
config.example.py mv cogs/{emoji,emote}.py 2018-07-30 19:14:34 -05:00
requirements.txt add requirements.txt 2018-07-29 22:39:46 -05:00