summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ATRI/configs/config.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/ATRI/configs/config.py b/ATRI/configs/config.py
index e691c65..caa7db1 100644
--- a/ATRI/configs/config.py
+++ b/ATRI/configs/config.py
@@ -2,8 +2,6 @@ import yaml
from time import sleep
from pathlib import Path
-from ATRI.log import log
-
from .models import BotConfig, ConfigModel, WithGoCQHTTP, RuntimeConfig
@@ -17,18 +15,18 @@ class Config:
with open(config_path, "w", encoding="utf-8") as w:
w.write(_DEFAULT_CONFIG_PATH.read_text("utf-8"))
- log.warning("未检测到 config.yml, 已于当前目录生成, 请参照文档进行填写并重新启动")
- log.warning("文档地址: https://atri.imki.moe/install/configuration-bot/")
+ print("!!! 未检测到 config.yml, 已于当前目录生成, 请参照文档进行填写并重新启动")
+ print("!!! 文档地址: https://atri.imki.moe/install/configuration-bot/")
sleep(3)
exit(0)
except Exception as err:
- log.error(f"写入文件 config.yml 失败, 请确认是否给足权限: {err}")
+ print(f"!!! 写入文件 config.yml 失败, 请确认是否给足权限: {err}")
sleep(3)
exit(-1)
else:
with open(config_path, "r", encoding="utf-8") as r:
if "BotSelfConfig" in r.read():
- log.warning("你的 config.yml 文件已废弃, 请删除并重新启动")
+ print("!!! 你的 config.yml 文件已废弃, 请删除并重新启动")
sleep(3)
exit(-1)