From a5c511b156d20647965fa9dd12de4bcf6475630b Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Thu, 16 Nov 2023 00:18:16 +0800 Subject: chore: 修改笔误 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- example/plugins/HydroRoll/__init__.py | 13 ------------- 2 files changed, 1 insertion(+), 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 = ""): -- cgit v1.2.3-70-g09d2