diff options
| author | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
|---|---|---|
| committer | Samlon <stankiewiczgracjan2019@gmail.com> | 2025-08-11 17:39:21 +0200 |
| commit | ca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch) | |
| tree | 4c175ba876ae35d9248dfab33d2a981fe3cfb207 /cogs/music/stop.py | |
| parent | changed printing to proper logging (diff) | |
| download | senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip | |
more logging
Diffstat (limited to 'cogs/music/stop.py')
| -rw-r--r-- | cogs/music/stop.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cogs/music/stop.py b/cogs/music/stop.py index e842b08..c7abfbd 100644 --- a/cogs/music/stop.py +++ b/cogs/music/stop.py | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | from discord.ext import commands | 1 | from discord.ext import commands |
| 2 | 2 | ||
| 3 | import logging | ||
| 4 | |||
| 5 | logger = logging.getLogger(__name__) | ||
| 6 | |||
| 3 | 7 | ||
| 4 | class Stop(commands.Cog): | 8 | class Stop(commands.Cog): |
| 5 | def __init__(self, bot): | 9 | def __init__(self, bot): |
| @@ -8,6 +12,7 @@ class Stop(commands.Cog): | |||
| 8 | @commands.slash_command(name="stop", description="stopuj bota") | 12 | @commands.slash_command(name="stop", description="stopuj bota") |
| 9 | async def stop(self, ctx): | 13 | async def stop(self, ctx): |
| 10 | await ctx.voice_client.disconnect() | 14 | await ctx.voice_client.disconnect() |
| 15 | logger.info("Bot disconnected from voice channel") | ||
| 11 | 16 | ||
| 12 | 17 | ||
| 13 | def setup(bot): | 18 | def setup(bot): |
