app/main.py

17 lines
370 B
Python
Raw Normal View History

2024-03-18 18:21:56 +08:00
import nonebot
2024-03-01 00:07:49 +08:00
2024-03-18 18:21:56 +08:00
from nonebot.adapters.onebot import v11, v12
from src.utils.config import load_from_yaml
2024-02-29 01:03:40 +08:00
2024-03-19 13:16:25 +08:00
nonebot.init(**load_from_yaml("config.yml"))
2024-03-18 18:21:56 +08:00
adapters = [v11.Adapter, v12.Adapter]
driver = nonebot.get_driver()
for adapter in adapters:
driver.register_adapter(adapter)
2024-03-19 20:38:25 +08:00
nonebot.load_plugin("src.liteyuki_main")
2024-03-18 18:21:56 +08:00
if __name__ == "__main__":
nonebot.run()