This commit is contained in:
Soumt Nam 2023-09-12 12:51:47 +09:00
parent 38ac3eb2da
commit 1fd94d6777
2 changed files with 32 additions and 1 deletions

View file

@ -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.")

31
modules/Friend.py Normal file
View file

@ -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.")