mirror of https://github.com/Mai-with-u/MaiBot.git
fix: 0.0.5 版本的增加分层控制项
parent
8e17255750
commit
00e02edc73
|
|
@ -191,6 +191,8 @@ class BotConfig:
|
||||||
bot_qq = bot_config.get("qq")
|
bot_qq = bot_config.get("qq")
|
||||||
config.BOT_QQ = int(bot_qq)
|
config.BOT_QQ = int(bot_qq)
|
||||||
config.BOT_NICKNAME = bot_config.get("nickname", config.BOT_NICKNAME)
|
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)
|
config.BOT_ALIAS_NAMES = bot_config.get("alias_names", config.BOT_ALIAS_NAMES)
|
||||||
|
|
||||||
def response(parent: dict):
|
def response(parent: dict):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue