Stopping fix
This commit is contained in:
parent
a958cb163e
commit
509af870f0
@ -2,6 +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
|
||||||
|
|
||||||
SquogFinalName: str = None
|
SquogFinalName: str = None
|
||||||
|
|
||||||
@ -74,7 +75,7 @@ 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 not ctx.guild.voice_client.is_playing():
|
if not ctx.guild.voice_client.is_playing():
|
||||||
return await ctx.reply("I'm not playing music.")
|
return await ctx.reply("I'm not playing music.")
|
||||||
SquogCurrentConnection.stop()
|
ctx.guild.voice_client.stop()
|
||||||
|
|
||||||
def setup(bot):
|
def setup(bot):
|
||||||
bot.add_cog(Voice(bot))
|
bot.add_cog(Voice(bot))
|
Loading…
x
Reference in New Issue
Block a user