LittlePaimon/bot.py

17 lines
369 B
Python
Raw Normal View History

2023-03-01 23:51:11 +08:00
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import nonebot
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11Adapter
from LittlePaimon.log import init_logger
init_logger()
nonebot.init()
app = nonebot.get_asgi()
driver = nonebot.get_driver()
driver.register_adapter(ONEBOT_V11Adapter)
if __name__ == '__main__':
nonebot.run(app='__mp_main__:app')