Other diff process thing

This commit is contained in:
= 2025-04-07 15:36:35 +07:00
parent 4c7a5225da
commit 89d34bb946

View File

@ -2,7 +2,7 @@ import nextcord
from nextcord.ext import commands from nextcord.ext import commands
import yt_dlp import yt_dlp
import os import os
import multiprocessing import threading
SquogFinalName: str = None SquogFinalName: str = None
@ -74,7 +74,7 @@ class Voice(commands.Cog):
SquogEvilFilename = f"{SquogFinalName[:SquogLength]}mp3" SquogEvilFilename = f"{SquogFinalName[:SquogLength]}mp3"
SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}")) SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}"))
multiprocessing.Process(target=Test).start() threading.Thread(target=Test).start()
@commands.command(description="Stops the music in voice channel") @commands.command(description="Stops the music in voice channel")
async def stop(self, ctx: nextcord.Message): async def stop(self, ctx: nextcord.Message):