chore: .
This commit is contained in:
parent
38ac3eb2da
commit
1fd94d6777
2 changed files with 32 additions and 1 deletions
|
@ -233,6 +233,7 @@ class AiTem(ModuleInterface):
|
||||||
self.name = "Ai-tem"
|
self.name = "Ai-tem"
|
||||||
self.regex_pattern = ".*Test_AI-tem"
|
self.regex_pattern = ".*Test_AI-tem"
|
||||||
|
|
||||||
|
self.funcs["generate"] = self._generate()
|
||||||
print("[Ai-tem] Ai-like item generator, Ai-tem V1 loaded.")
|
print("[Ai-tem] Ai-like item generator, Ai-tem V1 loaded.")
|
||||||
|
|
||||||
async def execute_module(self, ctx: Note):
|
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 "")
|
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):
|
def module_ready(self):
|
||||||
self.funcs["generate"] = self._generate
|
|
||||||
print("[Ai-tem] Module Ready.")
|
print("[Ai-tem] Module Ready.")
|
||||||
|
|
31
modules/Friend.py
Normal file
31
modules/Friend.py
Normal 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.")
|
Loading…
Reference in a new issue