From 1fd94d677702b0edb22c906d1c00cb9ebba0a166 Mon Sep 17 00:00:00 2001 From: Soumt Nam Date: Tue, 12 Sep 2023 12:51:47 +0900 Subject: [PATCH] chore: . --- modules/Ai_tem.py | 2 +- modules/Friend.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 modules/Friend.py diff --git a/modules/Ai_tem.py b/modules/Ai_tem.py index 14a9317..f37f3b9 100644 --- a/modules/Ai_tem.py +++ b/modules/Ai_tem.py @@ -233,6 +233,7 @@ class AiTem(ModuleInterface): self.name = "Ai-tem" self.regex_pattern = ".*Test_AI-tem" + self.funcs["generate"] = self._generate() print("[Ai-tem] Ai-like item generator, Ai-tem V1 loaded.") async def execute_module(self, ctx: Note): @@ -243,5 +244,4 @@ class AiTem(ModuleInterface): return random.choice(itemPrefixes) + ' ' + random.choice(items) + ((random.choice(ands) + ' ' + random.choice(itemPrefixes) + ' ' + random.choice(items)) if random.choice([True, False]) else "") def module_ready(self): - self.funcs["generate"] = self._generate print("[Ai-tem] Module Ready.") diff --git a/modules/Friend.py b/modules/Friend.py new file mode 100644 index 0000000..46c1352 --- /dev/null +++ b/modules/Friend.py @@ -0,0 +1,31 @@ +from module_interface import ModuleInterface +from mipac.models import Note + +class Friend(ModuleInterface): + def __init__(self): + super().__init__() + self.name = "Friend" + self.regex_pattern = None + + self.funcs["dec_like"] = self._dec_like + self.funcs["inc_like"] = self._inc_like + self.funcs["get_like"] = self._get_like + + print("[Friend] Friend DB system, Friend V1 loaded.") + + async def execute_module(self, ctx: Note): + pass + + def _dec_like(userid: str): + pass + + def _inc_like(userid: str): + pass + + def _get_like(userid: str): + pass + + def _is_friend(user: + + def module_ready(self): + print("[Friend] Module Ready.")