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:
fb759bf
)
Race moving channels.
author
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 10:53:52 +0000
(11:53 +0100)
committer
CMDR furrycat
<elite@furrycat.net>
Tue, 28 Mar 2017 10:53:52 +0000
(11:53 +0100)
bot.py
patch
|
blob
|
history
diff --git
a/bot.py
b/bot.py
index
a8173b5
..
a77d6f3
100644
(file)
--- a/
bot.py
+++ b/
bot.py
@@
-541,6
+541,7
@@
async def maybe_play_sound(channel, filename, *, probability = 0.05, join = True
log.debug('Moving to voice channel {}'.format(channel))
if voice is not None:
await voice.move_to(channel)
+ await asyncio.sleep(1)
else:
await client.join_voice_channel(channel)
voice = client.voice_client_in(channel.server)