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
|
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)
|
||||||
|
|
|
@ -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\
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue