2023-09-08 02:49:37 +02:00
|
|
|
from module_interface import ModuleInterface
|
|
|
|
from mipa.ext import tasks
|
|
|
|
import random
|
|
|
|
|
2023-10-03 04:01:27 +02:00
|
|
|
|
2023-09-08 02:49:37 +02:00
|
|
|
class Birthday(ModuleInterface):
|
|
|
|
def __init__(self):
|
|
|
|
super().__init__()
|
|
|
|
self.name = "Birthday"
|
|
|
|
self.regex_pattern = r"//"
|
2023-10-03 04:01:27 +02:00
|
|
|
|
2023-09-08 02:49:37 +02:00
|
|
|
print("[Birthday] Happy birthday message module, Birthday V1 loaded.")
|
|
|
|
|
|
|
|
def module_ready(self):
|
|
|
|
print("[Birthday] Module Ready.")
|
|
|
|
self.birthday_task.start()
|
2023-10-03 04:01:27 +02:00
|
|
|
|
2023-09-08 02:49:37 +02:00
|
|
|
@tasks.loop(seconds=600.0)
|
|
|
|
async def birthday_task(self):
|
2023-10-03 04:01:27 +02:00
|
|
|
# awa
|
2023-09-08 02:49:37 +02:00
|
|
|
pass
|