From 4b21f471ac914639ee4a2a789a7040d617e61fc2 Mon Sep 17 00:00:00 2001 From: CMDR furrycat Date: Tue, 28 Mar 2017 11:53:52 +0100 Subject: [PATCH] Race moving channels. --- bot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot.py b/bot.py index a8173b5..a77d6f3 100644 --- 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) -- 2.7.4