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):