From a2592494ce98d8865939ffc975408b798d3db009 Mon Sep 17 00:00:00 2001 From: Kyomotoi <0w0@imki.moe> Date: Wed, 1 Feb 2023 18:56:25 +0800 Subject: =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E4=BF=AE=E5=A4=8D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ATRI/configs/create.py | 2 +- ATRI/configs/default_config.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI') 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: ["."] -- cgit v1.2.3