From 043b1d362804d727da3e74ecf703228ea95d10a5 Mon Sep 17 00:00:00 2001 From: Michal Tuszowski Date: Fri, 31 Jan 2025 20:16:43 +0100 Subject: [PATCH] Fix --- other_commands.py | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/other_commands.py b/other_commands.py index 976d849..a7c45b4 100644 --- a/other_commands.py +++ b/other_commands.py @@ -73,15 +73,14 @@ class OtherModule(commands.Cog): ) @commands.has_any_role('Legenda', 'Jarl', 'Bartender') async def set_logging_level(self,ctx): - with ctx.channel.typing(): - if "DEBUG" in ctx.message.content: - logger = logging.getLogger("discord") - logger.setLevel(logging.DEBUG) - elif "INFO" in ctx.message.content: - logger = logging.getLogger("discord") - logger.setLevel(logging.INFO) - else: - await ctx.send("Weź się kurwa zdecyduj co ?") + if "DEBUG" in ctx.message.content: + logger = logging.getLogger("discord") + logger.setLevel(logging.DEBUG) + elif "INFO" in ctx.message.content: + logger = logging.getLogger("discord") + logger.setLevel(logging.INFO) + else: + await ctx.send("Weź się kurwa zdecyduj co ?") @commands.hybrid_command( name="reset_the_clock",