bmintz
bd44b8f1b2
Merge branch 'master' of https://github.com/bmintz/emote-manager-bot
2018-07-31 18:03:39 -05:00
bmintz
f44b106b60
add invite command
2018-07-31 18:02:55 -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
bmintz
d572e593b6
cogs/emoji.__local_check: fix error message
...
- also fail when user has perms but bot doesn't
- clarify this in the error message
2018-07-30 19:04:43 -05:00
bmintz
12d32c985a
ignore bots
2018-07-30 02:36:23 -05:00
bmintz
d5c0983a5f
Revert "change avatars every 30 minutes"
...
This reverts commit ee9f8a0af9
.
Yeah actually nevermind.
2018-07-30 01:30:44 -05:00
bmintz
ee9f8a0af9
change avatars every 30 minutes
2018-07-30 01:25:08 -05:00
bmintz
5d13b2fec6
cogs/emoji.remove: support removing multiple emotes
2018-07-30 00:58:03 -05:00
bmintz
69ae7f8bb4
cogs/emoji: add some docstrings
2018-07-30 00:57:47 -05:00
bmintz
281fdecc77
add paginator module
2018-07-30 00:54:13 -05:00
bmintz
9eac167a57
add list command
2018-07-30 00:43:30 -05:00
bmintz
52bd87300a
add rename command
2018-07-30 00:33:13 -05:00
bmintz
adc631c8d3
move image utils to utils.image
2018-07-30 00:26:15 -05:00
bmintz
4898d5156d
fix dumb NameError in bot
2018-07-30 00:26:06 -05:00
bmintz
aabd46bb33
bot: add error handler
2018-07-30 00:15:38 -05:00
bmintz
a94dcbb2b5
cogs/emoji: flesh out local_check and add on_command_error
2018-07-30 00:15:31 -05:00
bmintz
c5152309a6
add remove command
2018-07-30 00:15:09 -05:00
bmintz
b2bab91d36
s/emoji/emotes/
2018-07-29 23:42:27 -05:00
bmintz
3b488ab787
add add command
...
a lot of this is from Emoji Connoisseur
2018-07-29 23:38:19 -05:00
bmintz
bac48f7095
add cogs/emoji
2018-07-29 23:04:20 -05:00
bmintz
065505f273
gitignore: ignore nano swap files
2018-07-29 23:02:45 -05:00
bmintz
3702b3cce2
add example config
2018-07-29 23:02:16 -05:00
bmintz
5188b6f729
add bot from discord template
2018-07-29 22:49:08 -05:00
bmintz
5683490ab6
add requirements.txt
2018-07-29 22:39:46 -05:00
bmintz
76042dfdb8
Initial commit
2018-07-29 22:36:27 -05:00