From a10ed8ef2964b73a19bf4b57b534768130e079af Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 4 Aug 2021 16:25:48 +0100 Subject: [PATCH] Let's try if this fixes it --- app/cogs/slashcommands/secondary/tcard.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/cogs/slashcommands/secondary/tcard.py b/app/cogs/slashcommands/secondary/tcard.py index 7c53448..bb79248 100644 --- a/app/cogs/slashcommands/secondary/tcard.py +++ b/app/cogs/slashcommands/secondary/tcard.py @@ -70,10 +70,9 @@ class TCardCommand(commands.Cog, name='T-Card Command'): """Do the audio thing.""" for vc in ctx.channel.category.voice_channels: v = await vc.connect() - tcardaudio = discord.PCMAudio(open("./assets/tcard.wav", "rb")) + tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb")) v.play(tcardaudio) - while v.is_playing(): - time.sleep(1) + while v.is_playing(): time.sleep(.1) await v.disconnect() else: """Send a T-Card to the immediate channel if this is a generic channel."""