aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/stop.py
diff options
context:
space:
mode:
authorSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
committerSamlon <stankiewiczgracjan2019@gmail.com>2025-08-11 17:39:21 +0200
commitca0b4ecf005e1c1f4066460a45393ebffef1ef1c (patch)
tree4c175ba876ae35d9248dfab33d2a981fe3cfb207 /cogs/music/stop.py
parentchanged printing to proper logging (diff)
downloadsenator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.tar.gz
senator-sperma-ca0b4ecf005e1c1f4066460a45393ebffef1ef1c.zip
more logging
Diffstat (limited to '')
-rw-r--r--cogs/music/stop.py5
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 @@
1from discord.ext import commands 1from discord.ext import commands
2 2
3import logging
4
5logger = logging.getLogger(__name__)
6
3 7
4class Stop(commands.Cog): 8class 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
13def setup(bot): 18def setup(bot):