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:
7921786
)
Check for voice greeting properly.
author
CMDR furrycat
<elite@furrycat.net>
Sat, 29 Oct 2016 08:27:23 +0000
(09:27 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Sat, 29 Oct 2016 08:27:23 +0000
(09:27 +0100)
plugin/greetings/greetings.py
patch
|
blob
|
history
diff --git
a/plugin/greetings/greetings.py
b/plugin/greetings/greetings.py
index
615a30d
..
33efc90
100644
(file)
--- a/
plugin/greetings/greetings.py
+++ b/
plugin/greetings/greetings.py
@@
-587,9
+587,9
@@
class Greetings(DBConnection):
def play_greeting(self, greeting):
if 'sound' not in greeting or not greeting['sound']:
return
- if 'voice' not in greeting:
+ if 'voice
_id
' not in greeting:
return
- voice = client.get_channel(greeting['voice'])
+ voice = client.get_channel(greeting['voice
_id
'])
if voice is None:
log.warning("Can't get voice channel for greeting {}!".format(greeting['id']))
return