mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-11-11 01:27:29 +08:00
17 lines
385 B
Python
17 lines
385 B
Python
import nonebot
|
|
|
|
from nonebot.adapters.onebot import v11, v12
|
|
from src.utils.config import load_from_yaml
|
|
|
|
nonebot.init(**load_from_yaml("config.yml"))
|
|
|
|
adapters = [v11.Adapter, v12.Adapter]
|
|
driver = nonebot.get_driver()
|
|
for adapter in adapters:
|
|
driver.register_adapter(adapter)
|
|
|
|
nonebot.load_plugin("src.plugins.liteyuki_plugin_main")
|
|
|
|
if __name__ == "__main__":
|
|
nonebot.run()
|