aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/stop.py
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cogs/music/stop.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/cogs/music/stop.py b/cogs/music/stop.py
new file mode 100644
index 0000000..e842b08
--- /dev/null
+++ b/cogs/music/stop.py
@@ -0,0 +1,14 @@
1from discord.ext import commands
2
3
4class Stop(commands.Cog):
5 def __init__(self, bot):
6 self.bot = bot
7
8 @commands.slash_command(name="stop", description="stopuj bota")
9 async def stop(self, ctx):
10 await ctx.voice_client.disconnect()
11
12
13def setup(bot):
14 bot.add_cog(Stop(bot))