🤖 自动格式化代码 [skip ci]
This commit is contained in:
@@ -184,4 +184,4 @@ class APIEnvConfig:
|
||||
|
||||
|
||||
print("当前路径:")
|
||||
print(ROOT_PATH)
|
||||
print(ROOT_PATH)
|
||||
|
||||
@@ -8,9 +8,11 @@ install(extra_lines=3)
|
||||
|
||||
logger = get_logger("api")
|
||||
|
||||
|
||||
async def reload_config():
|
||||
try:
|
||||
from src.config import config as config_module
|
||||
|
||||
logger.debug("正在重载配置文件...")
|
||||
bot_config_path = os.path.join(BotConfig.get_config_dir(), "bot_config.toml")
|
||||
config_module.global_config = BotConfig.load_config(config_path=bot_config_path)
|
||||
|
||||
Reference in New Issue
Block a user