From 8d32e3ddad18588ca2bcb8a38e2ef990d4c0a9d3 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 29 Oct 2019 16:11:40 -0400 Subject: [PATCH] more changes --- r0b3bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index 5fb51cb..696b976 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -84,14 +84,17 @@ async def bitch(ctx): print(" ! User initiating $bitch is not in a voice channel") await ctx.send("You are not connected to a voice channel.") return - voice = get(bot.voice_clients, guild=ctx.guild) + voice: discord.VoiceClient = discord.utils.get(bot.voice_clients, guild=guild) + #voice = get(bot.voice_clients, guild=ctx.guild) if voice and voice.is_connected(): print(" - Joining voice channel") await voice.move_to(channel) + #else: # print(" ! Dunno what's going on, but it's not good") # voice = await channel.connect() #source = FFmpegPCMAudio('./monkey_bitch.mp3') + print(" - Creating Player") player = voice.play(discord.FFmpegPCMAudio('./monkey_bitch.mp3')) print(" - Playing sound")