Race moving channels.
authorCMDR furrycat <elite@furrycat.net>
Tue, 28 Mar 2017 10:53:52 +0000 (11:53 +0100)
committerCMDR furrycat <elite@furrycat.net>
Tue, 28 Mar 2017 10:53:52 +0000 (11:53 +0100)
bot.py

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)