mirror of
https://github.com/Xtao-Labs/QQ-GitHub-Bot.git
synced 2025-01-30 06:58:53 +00:00
27 lines
663 B
Python
27 lines
663 B
Python
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
"""
|
|
@Author : yanyongyu
|
|
@Date : 2020-09-10 17:12:05
|
|
@LastEditors : yanyongyu
|
|
@LastEditTime : 2022-01-13 16:10:11
|
|
@Description : Entry File of the Bot
|
|
@GitHub : https://github.com/yanyongyu
|
|
"""
|
|
__author__ = "yanyongyu"
|
|
|
|
import nonebot
|
|
from nonebot.adapters.onebot.v11 import Adapter as ONEBOT_V11_Adapter
|
|
|
|
nonebot.init()
|
|
app = nonebot.get_asgi()
|
|
|
|
driver = nonebot.get_driver()
|
|
driver.register_adapter(ONEBOT_V11_Adapter)
|
|
|
|
config = driver.config
|
|
nonebot.load_all_plugins(set(config.plugins), set(config.plugin_dirs))
|
|
|
|
if __name__ == "__main__":
|
|
nonebot.run(app="__mp_main__:app")
|