LittlePaimon/bot.py
CMHopeSunshine 49ea404eb8 🎉 Init
2023-03-01 23:51:11 +08:00

17 lines
369 B
Python

#!/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')