From d66ebf1e705723dd45af03ab7ef708ef35c1a79a Mon Sep 17 00:00:00 2001 From: Plexi09 Date: Sat, 4 Jan 2025 00:22:30 +0100 Subject: [PATCH] fix: missing await --- bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bot.py b/bot.py index 7814446..b44843e 100644 --- a/bot.py +++ b/bot.py @@ -50,10 +50,10 @@ async def on_message(message): numbers, total = extract_number_and_sum(message.content) if total == 69: - data = data_manager.load_data() + data = await data_manager.load_data() guild_id = str(message.guild.id) user_id = str(message.author.id) - config = data_manager.get_guild_config(guild_id) + config = await data_manager.get_guild_config(guild_id) # Mettre à jour les statistiques data_manager.update_stats(guild_id, user_id, 'count_69')