diff options
| author | 2023-11-16 00:18:16 +0800 | |
|---|---|---|
| committer | 2023-11-16 00:18:16 +0800 | |
| commit | a5c511b156d20647965fa9dd12de4bcf6475630b (patch) | |
| tree | 1da09d968b8dc52514f9b924890e6785c21bd22e | |
| parent | dfecacde300b0a38907fb6a1d4aa22a202b57f0d (diff) | |
| download | HydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.tar.gz HydroRoll-a5c511b156d20647965fa9dd12de4bcf6475630b.zip | |
chore: 修改笔误
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | example/plugins/HydroRoll/__init__.py | 13 |
2 files changed, 1 insertions, 14 deletions
@@ -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 = ""): |
