Files
ErrorNoCord/errornocord/fun.py
ErrorNoInternet 4185723b8d feat: add (incomplete) nix flake
dave.py isn't packaged yet. Will try to do this myself but dealing with
vcpkg is a bit annoying.
2026-03-23 09:00:35 -04:00

14 lines
382 B
Python

import random
from . import commands
from .constants import REACTIONS
async def on_message(message):
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