fix: invalid command refresh

This commit is contained in:
Lukáš Nedbálek 2025-09-14 17:55:44 +02:00
parent b3a3d22097
commit 668d5d2415

View file

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