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
3
main.py
3
main.py
@ -12,6 +12,9 @@ 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)
|
||||||
|
if not store_config['enable_satori']:
|
||||||
|
adapters = [v11.Adapter, v12.Adapter]
|
||||||
|
else:
|
||||||
adapters = [v11.Adapter, v12.Adapter, satori.Adapter]
|
adapters = [v11.Adapter, v12.Adapter, satori.Adapter]
|
||||||
driver = nonebot.get_driver()
|
driver = nonebot.get_driver()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user