aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-11-15 09:54:07 +0800
committer简律纯 <i@jyunko.cn>2023-11-15 09:54:07 +0800
commit4df7db30d25dbcbd369de6c744214a367b3c409b (patch)
tree4cc51961adee8269ac3196808029b2d03c72f8fd
parentc0e3b6ed6805b14cd14772ea4068671bc285be3e (diff)
downloadHydroRoll-4df7db30d25dbcbd369de6c744214a367b3c409b.tar.gz
HydroRoll-4df7db30d25dbcbd369de6c744214a367b3c409b.zip
chore: delete config.toml
-rw-r--r--.gitignore4
-rw-r--r--example/config.toml37
-rw-r--r--example/plugins/HydroRoll/__init__.py3
3 files changed, 2 insertions, 42 deletions
diff --git a/.gitignore b/.gitignore
index d1beff8..ee6d9a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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(