diff options
-rw-r--r-- | ATRI/configs/create.py | 2 | ||||
-rw-r--r-- | ATRI/configs/default_config.yml | 2 |
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: ["."] |