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