aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/plugins
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-16 00:18:16 +0800
committer简律纯 <i@jyunko.cn>2023-11-16 00:18:16 +0800
commita5c511b156d20647965fa9dd12de4bcf6475630b (patch)
tree1da09d968b8dc52514f9b924890e6785c21bd22e /example/plugins
parentdfecacde300b0a38907fb6a1d4aa22a202b57f0d (diff)
downloadHydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.tar.gz
HydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.zip
chore: 修改笔误
Diffstat (limited to 'example/plugins')
-rw-r--r--example/plugins/HydroRoll/__init__.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/example/plugins/HydroRoll/__init__.py b/example/plugins/HydroRoll/__init__.py
index 6739d94..5e48546 100644
--- a/example/plugins/HydroRoll/__init__.py
+++ b/example/plugins/HydroRoll/__init__.py
@@ -81,19 +81,6 @@ class HydroRoll(Plugin):
@BODY: lexer module will return a list of tokens, parser module will parse the tokens into a tree, and executor module will execute the tokens with a stack with a bool return value.
"""
logger.info("loading psi...")
- if not self.bot.global_state["HydroRoll"].get("hola") and not os.path.exists(
- join(BASE_DIR, "HydroRoll")
- ):
- # hola = self.models["hola"]
- # _, max_similarity = find_max_similarity(
- # self.event.message.get_plain_text(), hola
- # )
- max_similarity = 1
- if max_similarity > 0.51:
- self.init_directory()
- self.bot.global_state["HydroRoll"]["hola"] = True
- await self.event.reply("验证成功√ 正在初始化水系目录...")
- logger.info(GlobalConfig._copyright)
return isinstance(self.event, MessageEvent)
def _init_directory(self, _prefix: str = ""):