mirror of
https://github.com/LiteyukiStudio/nonebot-plugin-marshoai.git
synced 2025-07-31 21:39:50 +00:00
✨ 添加开发模式配置;新增入口文件和函数调用处理逻辑;重构文档字符串解析类
This commit is contained in:
16
main.py
Normal file
16
main.py
Normal file
@ -0,0 +1,16 @@
|
||||
"""该入口文件仅在nb run无法正常工作时使用
|
||||
"""
|
||||
|
||||
import nonebot
|
||||
from nonebot import get_driver
|
||||
from nonebot.adapters.onebot.v11 import Adapter
|
||||
from nonebot.plugin import load_plugin
|
||||
|
||||
nonebot.init()
|
||||
load_plugin("nonebot_plugin_marshoai")
|
||||
|
||||
driver = get_driver()
|
||||
driver.register_adapter(Adapter)
|
||||
|
||||
if __name__ == "__main__":
|
||||
nonebot.run()
|
Reference in New Issue
Block a user