From c3508543f1aa6b29a5045bd846408c6141e77eca Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Wed, 9 Aug 2023 14:45:12 +0800 Subject: --- .gitignore | 5 ++++- tests/config.example.toml | 18 ++++++++++++++++++ tests/main.py | 2 +- 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 tests/config.example.toml 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) -- cgit v1.2.3-70-g09d2