diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 15:28:20 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 15:28:20 +0200 |
| commit | 4b9bd0278267b34fc65a9ed0d0f1b8a1a29c0c8a (patch) | |
| tree | 0000a9333411bd9054f959d0e7efa2398a7e71db /cogs/music/stop.py | |
| parent | play.py fix (diff) | |
| download | senator-sperma-4b9bd0278267b34fc65a9ed0d0f1b8a1a29c0c8a.tar.gz senator-sperma-4b9bd0278267b34fc65a9ed0d0f1b8a1a29c0c8a.zip | |
fixing not working skip
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)) | ||
