From 936ffa8b06f339de37f6246e45858bbd215cd204 Mon Sep 17 00:00:00 2001 From: Samlon Date: Mon, 11 Aug 2025 18:08:59 +0200 Subject: more logs!?!?! and fixes --- cogs/music/join.py | 3 ++- cogs/music/play.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'cogs/music') diff --git a/cogs/music/join.py b/cogs/music/join.py index c626897..9837fdb 100644 --- a/cogs/music/join.py +++ b/cogs/music/join.py @@ -11,7 +11,8 @@ class Join(commands.Cog): @commands.slash_command(name="join", description="dołącza do kanalu") async def join(self, ctx): - await ctx.voice_client.connect() + channel = ctx.author.voice.channel + await channel.connect() logger.info("Bot connected to voice channel") diff --git a/cogs/music/play.py b/cogs/music/play.py index e75c91f..cf04ded 100644 --- a/cogs/music/play.py +++ b/cogs/music/play.py @@ -85,7 +85,7 @@ class Play(commands.Cog): if not result['result']: await ctx.followup.send("nie znaleziono wideo dla twojego wyszukiwania.", ephemeral=True) - logger.info(f"Could not find a video for your search: {search}") + logger.info(f"Could not find a video for search: {search}") return video = result['result'][0] -- cgit v1.2.3