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."""