feat: 添加启动绑定地址解析功能,支持从配置文件和环境变量迁移

This commit is contained in:
DrSmoothl
2026-04-04 20:13:04 +08:00
parent d87e6ec0bb
commit 2fb911a8d5
11 changed files with 437 additions and 41 deletions

2
bot.py
View File

@@ -30,7 +30,7 @@ if env_path.exists():
load_dotenv(str(env_path), override=True)
else:
print("[WIP] no .env file found, and templates is not ready yet.")
raise
print("[WIP] continue startup, use environment and existing config values.")
# try:
# if template_env_path.exists():
# shutil.copyfile(template_env_path, env_path)