Skip to content

Commit

Permalink
fix: missing await
Browse files Browse the repository at this point in the history
  • Loading branch information
Plexi09 committed Jan 3, 2025
1 parent c1af9d5 commit d66ebf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d66ebf1

Please sign in to comment.