fix: invalid command refresh
This commit is contained in:
parent
b3a3d22097
commit
668d5d2415
1 changed files with 4 additions and 1 deletions
|
|
@ -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'))
|
handler.setFormatter(logging.Formatter('%(asctime)s:%(levelname)s:%(name)s: %(message)s'))
|
||||||
logger.addHandler(handler)
|
logger.addHandler(handler)
|
||||||
|
|
||||||
|
logger.info("Loading config")
|
||||||
|
|
||||||
with open(os.path.join(KRUHOBOT_FOLDER, 'config.json'), 'r', encoding='utf-8') as f:
|
with open(os.path.join(KRUHOBOT_FOLDER, 'config.json'), 'r', encoding='utf-8') as f:
|
||||||
config = json.load(f)
|
config = json.load(f)
|
||||||
|
|
||||||
|
logger.info("Loading cogs")
|
||||||
|
|
||||||
bot = commands.Bot()
|
bot = commands.Bot()
|
||||||
bot.load_extension('kruhobot.cogs.auth')
|
bot.load_extension('kruhobot.cogs.auth')
|
||||||
bot.load_extension('kruhobot.cogs.utils')
|
bot.load_extension('kruhobot.cogs.utils')
|
||||||
bot.tree.sync()
|
|
||||||
|
|
||||||
@bot.listen('on_interaction')
|
@bot.listen('on_interaction')
|
||||||
async def statistics(interaction):
|
async def statistics(interaction):
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue