Returned back to normal process
This commit is contained in:
parent
1fa3f06bf6
commit
00e8aa65ff
@ -55,7 +55,6 @@ class Voice(commands.Cog):
|
|||||||
return await ctx.reply("I'm not in a voice channel.")
|
return await ctx.reply("I'm not in a voice channel.")
|
||||||
if ctx.guild.voice_client.is_playing():
|
if ctx.guild.voice_client.is_playing():
|
||||||
return await ctx.reply("I'm already playing music.")
|
return await ctx.reply("I'm already playing music.")
|
||||||
def Music():
|
|
||||||
SquogVoiceClient = ctx.guild.voice_client
|
SquogVoiceClient = ctx.guild.voice_client
|
||||||
print(link)
|
print(link)
|
||||||
SquogDownload.download(link)
|
SquogDownload.download(link)
|
||||||
@ -68,8 +67,6 @@ class Voice(commands.Cog):
|
|||||||
print(SquogLength)
|
print(SquogLength)
|
||||||
SquogEvilFilename = f"{SquogFinalName[:SquogLength]}mp3"
|
SquogEvilFilename = f"{SquogFinalName[:SquogLength]}mp3"
|
||||||
SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}"))
|
SquogVoiceClient.play(nextcord.FFmpegPCMAudio(f"{SquogEvilFilename}"))
|
||||||
print(ctx.guild.voice_client.is_connected())
|
|
||||||
multiprocessing.Process(target=Music).start()
|
|
||||||
|
|
||||||
|
|
||||||
@commands.command(description="Stops the music in voice channel")
|
@commands.command(description="Stops the music in voice channel")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user