From c80b926b354ea1e25fe4088fc1ff32dcad67d0fd Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Thu, 9 Jan 2025 16:53:28 -0500 Subject: [PATCH] feat: add fun module --- constants.py | 1 + events.py | 3 +++ fun.py | 7 +++++++ 3 files changed, 11 insertions(+) create mode 100644 fun.py diff --git a/constants.py b/constants.py index 695bd10..a9b29b7 100644 --- a/constants.py +++ b/constants.py @@ -35,6 +35,7 @@ RELOADABLE_MODULES = [ "core", "events", "extra", + "fun", "tasks", "utils", "voice", diff --git a/events.py b/events.py index 460cf05..f3490ee 100644 --- a/events.py +++ b/events.py @@ -3,6 +3,8 @@ import threading import time from logging import info +import fun + import commands import core import tasks @@ -26,6 +28,7 @@ async def on_bulk_message_delete(messages): async def on_message(message): await core.on_message(message) + await fun.on_message(message) async def on_message_delete(message): diff --git a/fun.py b/fun.py new file mode 100644 index 0000000..b3cfd52 --- /dev/null +++ b/fun.py @@ -0,0 +1,7 @@ +import random + + +async def on_message(message): + if "gn" in message.content: + if random.random() < 0.01: + await message.add_reaction(random.choice(["💤", "😪", "😴", "🛌"]))