feat(fun): add more reactions
This commit is contained in:
parent
062676df26
commit
b0c96a11cd
@ -24,6 +24,12 @@ SPONSORBLOCK_CATEGORY_NAMES = {
|
||||
"selfpromo": "self promotion",
|
||||
"sponsor": "sponsored",
|
||||
}
|
||||
REACTIONS = {
|
||||
"cat": ["🐈"],
|
||||
"dog": ["🐕"],
|
||||
"gn": ["💤", "😪", "😴", "🛌"],
|
||||
"pizza": ["🍕"],
|
||||
}
|
||||
RELOADABLE_MODULES = [
|
||||
"arguments",
|
||||
"audio",
|
||||
|
11
fun.py
11
fun.py
@ -1,10 +1,13 @@
|
||||
import random
|
||||
|
||||
import commands
|
||||
from constants import REACTIONS
|
||||
|
||||
|
||||
async def on_message(message):
|
||||
if random.random() < 0.01 and "gn" in commands.tokenize(
|
||||
message.content, remove_prefix=False
|
||||
):
|
||||
await message.add_reaction(random.choice(["💤", "😪", "😴", "🛌"]))
|
||||
if random.random() < 0.01:
|
||||
tokens = commands.tokenize(message.content, remove_prefix=False)
|
||||
for keyword, options in REACTIONS.items():
|
||||
if keyword in tokens:
|
||||
await message.add_reaction(random.choice(options))
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user