aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music/join.py
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music/join.py')
-rw-r--r--cogs/music/join.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/cogs/music/join.py b/cogs/music/join.py
index a613e81..c626897 100644
--- a/cogs/music/join.py
+++ b/cogs/music/join.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 Join(commands.Cog): 8class Join(commands.Cog):
5 def __init__(self, bot): 9 def __init__(self, bot):
@@ -8,6 +12,7 @@ class Join(commands.Cog):
8 @commands.slash_command(name="join", description="dołącza do kanalu") 12 @commands.slash_command(name="join", description="dołącza do kanalu")
9 async def join(self, ctx): 13 async def join(self, ctx):
10 await ctx.voice_client.connect() 14 await ctx.voice_client.connect()
15 logger.info("Bot connected to voice channel")
11 16
12 17
13def setup(bot): 18def setup(bot):