mirror of https://github.com/Mai-with-u/MaiBot.git
🤖 自动格式化代码 [skip ci]
parent
88a2b9d2ee
commit
27212c5d43
|
|
@ -8,9 +8,11 @@ install(extra_lines=3)
|
||||||
|
|
||||||
logger = get_logger("api")
|
logger = get_logger("api")
|
||||||
|
|
||||||
|
|
||||||
async def reload_config():
|
async def reload_config():
|
||||||
try:
|
try:
|
||||||
from src.config import config as config_module
|
from src.config import config as config_module
|
||||||
|
|
||||||
logger.debug("正在重载配置文件...")
|
logger.debug("正在重载配置文件...")
|
||||||
bot_config_path = os.path.join(BotConfig.get_config_dir(), "bot_config.toml")
|
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)
|
config_module.global_config = BotConfig.load_config(config_path=bot_config_path)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue