Skip to content

Commit

Permalink
Send the message before adding the reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
Plexi09 committed Jan 3, 2025
1 parent a92c78e commit 573444a
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ async def on_message(message):

logger.info(f"69 trouvé dans le message de {message.author.id} sur {message.guild.id}")

# Appliquer les configurations
if config['enable_reactions']:
reactions = ["6️⃣", "9️⃣", "👀"]
for emoji in reactions:
await message.add_reaction(emoji)

if config['send_message']:
response = "Génial ! Tous les nombres de votre message s'additionnent à 69 !\n\n"
response += "```" + " + ".join(map(str, numbers)) + f" = {total}" + "```"
Expand All @@ -145,6 +139,10 @@ async def on_message(message):
f"{message.author.mention} Je ne peux pas vous envoyer de message privé. "
"Vérifiez que vous acceptez les messages privés de ce serveur."
)
if config['enable_reactions']:
reactions = ["6️⃣", "9️⃣", "👀"]
for emoji in reactions:
await message.add_reaction(emoji)

await bot.process_commands(message)

Expand Down

0 comments on commit 573444a

Please sign in to comment.