feat: add fun module

This commit is contained in:
Ryan 2025-01-09 16:53:28 -05:00
parent 23c29e1fa0
commit c80b926b35
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3
3 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,7 @@ RELOADABLE_MODULES = [
"core", "core",
"events", "events",
"extra", "extra",
"fun",
"tasks", "tasks",
"utils", "utils",
"voice", "voice",

View File

@ -3,6 +3,8 @@ import threading
import time import time
from logging import info from logging import info
import fun
import commands import commands
import core import core
import tasks import tasks
@ -26,6 +28,7 @@ async def on_bulk_message_delete(messages):
async def on_message(message): async def on_message(message):
await core.on_message(message) await core.on_message(message)
await fun.on_message(message)
async def on_message_delete(message): async def on_message_delete(message):

7
fun.py Normal file
View File

@ -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(["💤", "😪", "😴", "🛌"]))