toggle for message reacting

This commit is contained in:
WhatDidYouExpect 2025-07-06 23:44:04 +02:00
parent 23b4745c0c
commit a5ee9f09f5
3 changed files with 5 additions and 0 deletions

2
bot.py
View file

@ -383,6 +383,8 @@ async def on_message(message: discord.Message) -> None:
sentiment_score = is_positive(message.content) # doesnt work but im scared to change the logic now please ignore
if sentiment_score > 0.8:
if REACT != "True":
return
emoji = random.choice(EMOJIS)
try:
await message.add_reaction(emoji)