From ca0b4ecf005e1c1f4066460a45393ebffef1ef1c Mon Sep 17 00:00:00 2001 From: Samlon Date: Mon, 11 Aug 2025 17:39:21 +0200 Subject: more logging --- cogs/tts.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cogs/tts.py') diff --git a/cogs/tts.py b/cogs/tts.py index 2481ab3..dceb26c 100644 --- a/cogs/tts.py +++ b/cogs/tts.py @@ -4,6 +4,9 @@ import os import discord from discord.ext import commands from gtts import gTTS +import logging + +logger = logging.getLogger(__name__) class TTS(commands.Cog): @@ -24,6 +27,7 @@ class TTS(commands.Cog): # Check if the user is in a voice channel if not (ctx.author.voice and ctx.author.voice.channel): await ctx.respond("Musisz być na kanale głosowym, aby odtworzyć TTS!", ephemeral=True) + logger.info("tts: User is not in a voice channel") os.remove('tts.mp3') return channel = ctx.author.voice.channel -- cgit v1.2.3