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

diff --git a/bot.py b/bot.py
index 4647983..a8173b5 100644 (file)
--- a/bot.py
+++ b/bot.py
@@ -540,7 +540,7 @@ async def maybe_play_sound(channel, filename, *, probability = 0.05, join = True
       return False
     log.debug('Moving to voice channel {}'.format(channel))
     if voice is not None:
-      await client.move_to(channel)
+      await voice.move_to(channel)
     else:
       await client.join_voice_channel(channel)
     voice = client.voice_client_in(channel.server)