From c76d8a723d5b8d566467e99090d7d059db10660c Mon Sep 17 00:00:00 2001 From: Soumt Nam Date: Wed, 13 Sep 2023 19:50:41 +0900 Subject: [PATCH] feat: magic conch module added --- modules/Ai_tem.py | 1 - modules/Magic_Conch.py | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 modules/Magic_Conch.py diff --git a/modules/Ai_tem.py b/modules/Ai_tem.py index b379160..362db0b 100644 --- a/modules/Ai_tem.py +++ b/modules/Ai_tem.py @@ -245,7 +245,6 @@ class AiTem(ModuleInterface): con_sel = random.choice(ands) item1_comp = self.manager.require("K-Josa").get_func("process_josa")(item1_sel, con_sel[0], con_sel[1]) + con_sel[2] - print(item1_sel, item1_comp) return random.choice(itemPrefixes) + ' ' + ((item1_comp + ' ' + random.choice(itemPrefixes) + ' ' + random.choice(items)) if random.choice([True, False]) else item1_sel) def module_ready(self): diff --git a/modules/Magic_Conch.py b/modules/Magic_Conch.py new file mode 100644 index 0000000..5173f51 --- /dev/null +++ b/modules/Magic_Conch.py @@ -0,0 +1,16 @@ +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(["아..니요?", "네!", "안 돼요!", "아마도요..?"]))