diff options
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): |
