aboutsummaryrefslogtreecommitdiffstats
path: root/cogs/music
diff options
context:
space:
mode:
Diffstat (limited to 'cogs/music')
-rw-r--r--cogs/music/join.py3
-rw-r--r--cogs/music/play.py2
2 files changed, 3 insertions, 2 deletions
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):
11 11
12 @commands.slash_command(name="join", description="dołącza do kanalu") 12 @commands.slash_command(name="join", description="dołącza do kanalu")
13 async def join(self, ctx): 13 async def join(self, ctx):
14 await ctx.voice_client.connect() 14 channel = ctx.author.voice.channel
15 await channel.connect()
15 logger.info("Bot connected to voice channel") 16 logger.info("Bot connected to voice channel")
16 17
17 18
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):
85 85
86 if not result['result']: 86 if not result['result']:
87 await ctx.followup.send("nie znaleziono wideo dla twojego wyszukiwania.", ephemeral=True) 87 await ctx.followup.send("nie znaleziono wideo dla twojego wyszukiwania.", ephemeral=True)
88 logger.info(f"Could not find a video for your search: {search}") 88 logger.info(f"Could not find a video for search: {search}")
89 return 89 return
90 90
91 video = result['result'][0] 91 video = result['result'][0]