mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2024-11-23 04:27:38 +08:00
判断配置文件是否启用satori
This commit is contained in:
parent
4e6532ff0d
commit
351743068a
5
main.py
5
main.py
@ -12,7 +12,10 @@ if __name__ == "__mp_main__":
|
||||
static_config = load_from_yaml("config.yml")
|
||||
store_config.update(static_config)
|
||||
nonebot.init(**store_config)
|
||||
adapters = [v11.Adapter, v12.Adapter, satori.Adapter]
|
||||
if not store_config['enable_satori']:
|
||||
adapters = [v11.Adapter, v12.Adapter]
|
||||
else:
|
||||
adapters = [v11.Adapter, v12.Adapter, satori.Adapter]
|
||||
driver = nonebot.get_driver()
|
||||
|
||||
for adapter in adapters:
|
||||
|
Loading…
Reference in New Issue
Block a user