aboutsummaryrefslogtreecommitdiffstatshomepage
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
parentdfecacde300b0a38907fb6a1d4aa22a202b57f0d (diff)
downloadHydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.tar.gz
HydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.zip
chore: 修改笔误
-rw-r--r--README.md2
-rw-r--r--example/plugins/HydroRoll/__init__.py13
2 files changed, 1 insertions, 14 deletions
diff --git a/README.md b/README.md
index 4312d9d..b454331 100644
--- a/README.md
+++ b/README.md
@@ -79,7 +79,7 @@ HydroRoll 水系 的论坛在 [GitHub Discussions](https://github.com/HydroRoll-
1. 使用 `pdm` 局部更新
``` shell
-pdm upgrade hyrdroroll
+pdm update hyrdroroll
```
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 = ""):