From 668d5d2415216ad8dc0326acf1f2a6aef26a594d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Nedb=C3=A1lek?= Date: Sun, 14 Sep 2025 17:55:44 +0200 Subject: [PATCH] fix: invalid command refresh --- bin/kruhobot | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bin/kruhobot b/bin/kruhobot index 374cfb2..4e086a5 100644 --- a/bin/kruhobot +++ b/bin/kruhobot @@ -14,13 +14,16 @@ handler = logging.FileHandler(filename=os.path.join(KRUHOBOT_FOLDER, 'kruhobot.l handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s')) logger.addHandler(handler) +logger.info("Loading config") + with open(os.path.join(KRUHOBOT_FOLDER, 'config.json'), 'r', encoding='utf-8') as f: config = json.load(f) +logger.info("Loading cogs") + bot = commands.Bot() bot.load_extension('kruhobot.cogs.auth') bot.load_extension('kruhobot.cogs.utils') -bot.tree.sync() @bot.listen('on_interaction') async def statistics(interaction):