This commit is contained in:
Entarno54 2025-05-05 22:05:02 +07:00
parent 5d541559eb
commit ecafb8fc65

View File

@ -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}"))