aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-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)