diff options
| -rw-r--r-- | .gitignore | 4 | ||||
| -rw-r--r-- | example/config.toml | 37 | ||||
| -rw-r--r-- | example/plugins/HydroRoll/__init__.py | 3 |
3 files changed, 2 insertions, 42 deletions
@@ -106,6 +106,6 @@ dmypy.json node_modules/ docs/.next/ -# tests -tests/config.toml +# example +example/config.toml .pdm-python
\ No newline at end of file diff --git a/example/config.toml b/example/config.toml deleted file mode 100644 index 32ca3cd..0000000 --- a/example/config.toml +++ /dev/null @@ -1,37 +0,0 @@ -[bot] -plugins = [] -plugin_dirs = ["plugins"] -rules = [] -rule_dirs = ["rules"] -adapters = [ - "iamai.adapter.cqhttp", - "iamai.adapter.apscheduler", - "iamai.adapter.dingtalk" -] - -[bot.log] -level = "INFO" -verbose_exception = true - -[adapter.cqhttp] -adapter_type = "reverse-ws" -host = "127.0.0.1" -port = 8080 -url = "/cqhttp/ws" -show_raw = false - -[adapter.dingtalk] -adapter_type = "stream" -host = "127.0.0.1" -port = 8081 -url = "/dingtalk" -app_secret = "FnQU_a88xRpmcs3oPNXSgoQgm4TidGduVqKhLHR7_NgF6MLBUUbwYdE6MkOFWZFb" -app_key = "dingo7xu5djthkxpoick" - -[adapter.apscheduler] -scheduler_config = { "apscheduler.timezone" = "Asia/Shanghai" } - -[plugin.HydroRoll] -uid = '' -rules = [] -rule_dirs = ["rules"]
\ No newline at end of file diff --git a/example/plugins/HydroRoll/__init__.py b/example/plugins/HydroRoll/__init__.py index cbf4463..d8c87f5 100644 --- a/example/plugins/HydroRoll/__init__.py +++ b/example/plugins/HydroRoll/__init__.py @@ -82,10 +82,7 @@ class HydroRoll(Plugin): logger.info("loading psi...") if ( not self.bot.global_state["HydroRoll"].get("hola") - and self.event.type == "message" - and self.event.message_type == "private" and not os.path.exists(join(BASE_DIR, "HydroRoll")) - and self.event.adapter.name in ["cqhttp", "kook", "console", "mirai"] ): # hola = self.models["hola"] # _, max_similarity = find_max_similarity( |
