1
0
Fork 0
mirror of https://github.com/uhIgnacio/EmoteManager.git synced 2024-08-15 02:23:13 +00:00
Commit graph

12 commits

Author SHA1 Message Date
bmintz
8f170d7f13 allow use of the actual emote in place of the emote name 2018-08-17 07:35:16 +00:00
bmintz
67027e5f0f cogs/emote: add some aliases 2018-08-17 07:13:38 +00:00
bmintz
be2343988b use aioec 2018-08-17 05:34:31 +00:00
bmintz
08aef03d6b add-from-ec: handle cases where the API is down 2018-08-14 00:16:43 -05:00
bmintz
9cd8ed4189 remove one debug log statement 2018-08-14 00:11:38 -05:00
bmintz
3550d5c502 cogs/emote: remove one print, add another 2018-08-14 00:08:34 -05:00
bmintz
7b843d0bd9 fix allowing @Emote Manager list 2018-08-11 21:08:23 -05:00
bmintz
e366cb4537 allow anyone to use the list command 2018-08-11 21:06:39 -05:00
bmintz
e5da0de672 add add-from-ec command 2018-07-31 20:46:21 -05:00
bmintz
cfb51bf8b4 add raw form to list cmd 2018-07-31 05:13:54 -05:00
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
bmintz
52618915be mv cogs/{emoji,emote}.py 2018-07-30 19:14:34 -05:00
Renamed from cogs/emoji.py (Browse further)