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 sentiment_score = is_positive(message.content) # doesnt work but im scared to change the logic now please ignore
if sentiment_score > 0.8: if sentiment_score > 0.8:
if REACT != "True":
return
emoji = random.choice(EMOJIS) emoji = random.choice(EMOJIS)
try: try:
await message.add_reaction(emoji) await message.add_reaction(emoji)

View file

@ -10,6 +10,7 @@ ALIVEPING="true"
AUTOUPDATE="True" AUTOUPDATE="True"
gooberTOKEN= gooberTOKEN=
song="War Without Reason" song="War Without Reason"
REACT="True"
POSITIVE_GIFS="https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272, https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988" POSITIVE_GIFS="https://tenor.com/view/chill-guy-my-new-character-gif-2777893510283028272, https://tenor.com/view/goodnight-goodnight-friends-weezer-weezer-goodnight-gif-7322052181075806988"
splashtext=" splashtext="
SS\ SS\

View file

@ -42,4 +42,6 @@ launched = False
latest_version = "0.0.0" latest_version = "0.0.0"
local_version = "2.0.0" local_version = "2.0.0"
os.environ['gooberlocal_version'] = local_version os.environ['gooberlocal_version'] = local_version
REACT = os.getenv("REACT")
beta = True beta = True