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