fix: 0.0.5 版本的增加分层控制项

This commit is contained in:
Rikki
2025-03-11 04:00:23 +08:00
parent 8e17255750
commit 00e02edc73

View File

@@ -191,6 +191,8 @@ class BotConfig:
bot_qq = bot_config.get("qq")
config.BOT_QQ = int(bot_qq)
config.BOT_NICKNAME = bot_config.get("nickname", config.BOT_NICKNAME)
if config.INNER_VERSION in SpecifierSet(">=0.0.5"):
config.BOT_ALIAS_NAMES = bot_config.get("alias_names", config.BOT_ALIAS_NAMES)
def response(parent: dict):