diff options
Diffstat (limited to 'cogs/music/join.py')
| -rw-r--r-- | cogs/music/join.py | 5 |
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 @@ | |||
| 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 Join(commands.Cog): | 8 | class 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 | ||
| 13 | def setup(bot): | 18 | def setup(bot): |
