minya_hotomoe/modules/Magic_Conch.py

17 lines
591 B
Python
Raw Normal View History

2023-09-13 12:50:41 +02:00
from module_interface import ModuleInterface
from mipac.models import Note
import random
class MConch(ModuleInterface):
def __init__(self):
super().__init__()
self.name = "Magic_Conch"
2023-09-13 12:58:31 +02:00
self.regex_pattern = r".*마법의 미냐고동님\s*.*?"
2023-09-13 12:50:41 +02:00
print("[Magic_Conch] Selection helper module, Magic_Conch V1 loaded.")
async def execute_module(self, ctx: Note):
print(f"[Magic_Conch] Got Magic_Conch Message : {ctx.content}")
await ctx.api.action.reply(random.choice(["아..니요?", "네!", "안 돼요!", "아마도요..?"]))