feat: 添加启动绑定地址解析功能,支持从配置文件和环境变量迁移
This commit is contained in:
2
bot.py
2
bot.py
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user