koishi-plugin-nonebot 1.1.0 #4
shigma
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
这里是 koishi-plugin-nonebot 的第一次小版本更新。此次更新最大的变化在于,我们终于允许插件依赖第三方 python 库了!在 1.0 版本中,所有发布的 nonebot 插件都只能加载标准库和我们内置模拟的几个库;而更多的插件则因为依赖了诸如 npmpy、pillow 等常见库而无法运行。而现在,这个问题已经被圆满地解决。我们采用了本体预装与插件自带相结合的方式,koishi-plugin-nonebot 将预装一部分常用库,而插件如有其他需要也可以将额外的依赖打包并发布。
功能
支持了 NoneBot 的更多功能:
on_keyword
现在接受列表了on_command
现在接受aliases
了Driver
相关 API 如on_startup
,on_shutdown
Depends()
的依赖注入MessageSegment
RegexMatched
,RegexDict
和RegexGroup
内置模拟模块:
base_url
参数params
参数新增了内置模块:
插件
This discussion was created from the release koishi-plugin-nonebot 1.1.0.
Beta Was this translation helpful? Give feedback.
All reactions