summaryrefslogtreecommitdiff
path: root/ATRI/configs
diff options
context:
space:
mode:
authorKyomotoi <[email protected]>2023-02-01 18:56:25 +0800
committerKyomotoi <[email protected]>2023-02-01 18:56:25 +0800
commita2592494ce98d8865939ffc975408b798d3db009 (patch)
tree8c404531fd591b7725c0b12cec427928ce1a64ff /ATRI/configs
parent9f4395709dff7404c4c75024e10dbeef093ae261 (diff)
downloadATRI-a2592494ce98d8865939ffc975408b798d3db009.tar.gz
ATRI-a2592494ce98d8865939ffc975408b798d3db009.tar.bz2
ATRI-a2592494ce98d8865939ffc975408b798d3db009.zip
🚑️ 修复设置类型错误
Diffstat (limited to 'ATRI/configs')
-rw-r--r--ATRI/configs/create.py2
-rw-r--r--ATRI/configs/default_config.yml2
2 files changed, 2 insertions, 2 deletions
diff --git a/ATRI/configs/create.py b/ATRI/configs/create.py
index deed5bb..a5596df 100644
--- a/ATRI/configs/create.py
+++ b/ATRI/configs/create.py
@@ -87,7 +87,7 @@ def init_config(conf_path: Path, default_conf_path: Path):
raw_conf = default_conf_path.read_text("utf-8")
raw_conf = raw_conf.replace("{host}", host)
raw_conf = raw_conf.replace("{port}", port)
- raw_conf = raw_conf.replace("{superusers}", superusers)
+ raw_conf = raw_conf.replace("{superusers}", str(superusers.split(",")))
raw_conf = raw_conf.replace("{access_token}", access_token)
raw_conf = raw_conf.replace("{proxy}", proxy)
diff --git a/ATRI/configs/default_config.yml b/ATRI/configs/default_config.yml
index 7c30eb7..7808487 100644
--- a/ATRI/configs/default_config.yml
+++ b/ATRI/configs/default_config.yml
@@ -5,7 +5,7 @@ BotConfig:
host: "{host}"
port: {port}
debug: false
- superusers: [{superusers}]
+ superusers: {superusers}
nickname: ["ATRI", "Atri", "atri", "亚托莉", "アトリ"]
command_start: ["", "/"]
command_sep: ["."]