aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2023-08-09 14:45:12 +0800
committer简律纯 <i@jyunko.cn>2023-08-09 14:45:12 +0800
commitc3508543f1aa6b29a5045bd846408c6141e77eca (patch)
tree417f6b14bef6b1b8df71e18599672f49b75f3a65
parent85ec2f7dc55a672b07272a50f11eb86460f38671 (diff)
downloadHydroRoll-c3508543f1aa6b29a5045bd846408c6141e77eca.tar.gz
HydroRoll-c3508543f1aa6b29a5045bd846408c6141e77eca.zip
-rw-r--r--.gitignore5
-rw-r--r--tests/config.example.toml18
-rw-r--r--tests/main.py2
3 files changed, 23 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index 307e801..1f69558 100644
--- a/.gitignore
+++ b/.gitignore
@@ -103,4 +103,7 @@ dmypy.json
.vscode
# Docs
-node_modules/ \ No newline at end of file
+node_modules/
+
+# tests
+tests/config.toml \ No newline at end of file
diff --git a/tests/config.example.toml b/tests/config.example.toml
new file mode 100644
index 0000000..d4b4697
--- /dev/null
+++ b/tests/config.example.toml
@@ -0,0 +1,18 @@
+[bot]
+plugins = []
+plugin_dirs = ["plugins"]
+adapters = ["iamai.adapter.cqhttp","iamai.adapter.apscheduler"]
+
+[bot.log]
+level = "INFO"
+verbose_exception = true
+
+[adapter.cqhttp]
+adapter_type = "reverse-ws"
+host = "127.0.0.1"
+port = 15800
+url = "/cqhttp/ws"
+show_raw = false
+
+[adapter.apscheduler]
+scheduler_config = { "apscheduler.timezone" = "Asia/Shanghai" } \ No newline at end of file
diff --git a/tests/main.py b/tests/main.py
index 93f67f2..bb95e79 100644
--- a/tests/main.py
+++ b/tests/main.py
@@ -1,4 +1,4 @@
-from HydroRoll import Bot
+from iamai import Bot
bot = Bot(hot_reload=True)