git://git.furryclan.net
/
furrycat
/
catbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c725348
)
Admins can play sounds.
author
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 15:47:25 +0000
(16:47 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 15:47:25 +0000
(16:47 +0100)
plugin/play/play.py
patch
|
blob
|
history
diff --git
a/plugin/play/play.py
b/plugin/play/play.py
index
741cccb
..
0fedf78
100644
(file)
--- a/
plugin/play/play.py
+++ b/
plugin/play/play.py
@@
-107,7
+107,7
@@
class Play(object):
server = voice.server
member = server.get_member(message.author.id)
- if member.top_role >= server.me.top_role:
+ if
bot.is_admin(member) or
member.top_role >= server.me.top_role:
log.info('Sound {} requested by {} in {} on {}'.format(url, message.author, voice.name, server.name))
await bot.wake_up()
result = await bot.play_sound(voice, url)