aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/stop.py
diff options
context:
space:
mode:
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):