diff options
Diffstat (limited to 'cogs/music/stop.py')
| -rw-r--r-- | cogs/music/stop.py | 14 |
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 @@ | |||
| 1 | from discord.ext import commands | ||
| 2 | |||
| 3 | |||
| 4 | class 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 | |||
| 13 | def setup(bot): | ||
| 14 | bot.add_cog(Stop(bot)) | ||
