minya_hotomoe/modules/Magic_Conch.py
2023-09-13 19:56:29 +09:00

16 lines
594 B
Python

from module_interface import ModuleInterface
from mipac.models import Note
import random
class MConch(ModuleInterface):
def __init__(self):
super().__init__()
self.name = "Magic_Conch"
self.regex_pattern = r".*마법의 미냐고동\s*님\s*.*?"
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(["아..니요?", "네!", "안 돼요!", "아마도요..?"]))