blob: e842b08c1df8feb3afc610c92fbf2386091eadd4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
from discord.ext import commands
class Stop(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.slash_command(name="stop", description="stopuj bota")
async def stop(self, ctx):
await ctx.voice_client.disconnect()
def setup(bot):
bot.add_cog(Stop(bot))
|