From ecafb8fc65e5c2feabdfff5d8728ba9c61561901 Mon Sep 17 00:00:00 2001 From: Entarno54 Date: Mon, 5 May 2025 22:05:02 +0700 Subject: [PATCH] Fixes --- commands/voice.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/voice.py b/commands/voice.py index 8731724..5013732 100644 --- a/commands/voice.py +++ b/commands/voice.py @@ -71,7 +71,7 @@ class Voice(commands.Cog): SquogVoiceClient = ctx.guild.voice_client # Function I will pass to the thread - def Process(): + async def Process(): #Downloading the music SquogDownload.download(link) #Getting the filename again @@ -89,7 +89,7 @@ class Voice(commands.Cog): while SquogPlaying[ctx.guild.id]: SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}")) while SquogVoiceClient.is_playing(): - asyncio.sleep(.2) + await asyncio.sleep(.2) else: SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}"))