mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +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")
|
static_config = load_from_yaml("config.yml")
|
||||||
store_config.update(static_config)
|
store_config.update(static_config)
|
||||||
nonebot.init(**store_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()
|
driver = nonebot.get_driver()
|
||||||
|
|
||||||
for adapter in adapters:
|
for adapter in adapters:
|
||||||
|
Loading…
Reference in New Issue
Block a user