From a5ee9f09f5f6af340a9cc650d3093de222877ad6 Mon Sep 17 00:00:00 2001 From: WhatDidYouExpect <89535984+WhatDidYouExpect@users.noreply.github.com> Date: Sun, 6 Jul 2025 23:44:04 +0200 Subject: [PATCH] toggle for message reacting --- bot.py | 2 ++ example.env | 1 + modules/globalvars.py | 2 ++ 3 files changed, 5 insertions(+) diff --git a/bot.py b/bot.py index 63b2b20..560f474 100644 --- a/bot.py +++ b/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) diff --git a/example.env b/example.env index 8785786..720812a 100644 --- a/example.env +++ b/example.env @@ -10,6 +10,7 @@ ALIVEPING="true" AUTOUPDATE="True" gooberTOKEN= 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" splashtext=" SS\ diff --git a/modules/globalvars.py b/modules/globalvars.py index 800960a..f67df03 100644 --- a/modules/globalvars.py +++ b/modules/globalvars.py @@ -42,4 +42,6 @@ launched = False latest_version = "0.0.0" local_version = "2.0.0" os.environ['gooberlocal_version'] = local_version +REACT = os.getenv("REACT") beta = True + \ No newline at end of file