forked from gooberinc/goober
toggle for message reacting
This commit is contained in:
parent
23b4745c0c
commit
a5ee9f09f5
3 changed files with 5 additions and 0 deletions
2
bot.py
2
bot.py
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue