From ca0b4ecf005e1c1f4066460a45393ebffef1ef1c Mon Sep 17 00:00:00 2001 From: Samlon Date: Mon, 11 Aug 2025 17:39:21 +0200 Subject: more logging --- cogs/music/play.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cogs/music/play.py') diff --git a/cogs/music/play.py b/cogs/music/play.py index d902cdc..5664d31 100644 --- a/cogs/music/play.py +++ b/cogs/music/play.py @@ -59,6 +59,7 @@ class Play(commands.Cog): source = discord.FFmpegPCMAudio(url2, **ffmpeg_options) vc.play(source, after=after_playing) await ctx.followup.send(f"gra: {title}") + logger.info(f"Playing: {title}") except Exception as e: await ctx.followup.send(f"Wystąpił błąd podczas odtwarzania: {str(e)}") @@ -68,6 +69,7 @@ class Play(commands.Cog): if not (ctx.author.voice and ctx.author.voice.channel): await ctx.followup.send("nie jesteś w kanale głosowym") + logger.info("User is not in a voice channel") return channel = ctx.author.voice.channel @@ -82,6 +84,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}") return video = result['result'][0] -- cgit v1.2.3