结构调整
视频解析多图/多媒体结构 消息体适配
This commit is contained in:
@@ -55,10 +55,14 @@ driver = nonebot.get_driver()
|
||||
# 注册适配器
|
||||
driver.register_adapter(ONEBOTV11Adapter)
|
||||
|
||||
# 加载插件
|
||||
nonebot.load_plugins("hexi")
|
||||
# 加载插件(hexi/plugins 下的自定义插件 + pyproject 声明的社区插件)
|
||||
nonebot.load_from_toml("pyproject.toml")
|
||||
|
||||
# 核心模块(已从 hexi/plugins 移出,不再是插件):在插件管理器建立后再导入,
|
||||
# 避免在插件管理器创建前 require 社区插件导致重复注册/“not loaded as a plugin”。
|
||||
import hexi.core # noqa: F401,E402
|
||||
import hexi.web_hub # noqa: F401,E402
|
||||
|
||||
if __name__ == "__main__":
|
||||
logger.warning("hexi?启动!")
|
||||
nonebot.run() # 直接运行,不需要传参
|
||||
Reference in New Issue
Block a user