Nonebot Plugin Alconna 0.26.0 #11
RF-Tar-Railt
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
破坏性改动
on_alconna
等删除参数output_converter
,message_provider
,用Extension
替代新增
Extension
, 用于自定义 AlconnaMatcher 的部分行为 [Feature] Plugin/Extension #7例如
LLMExtension
,可以用于将自然语言通过llm转为指令:Extension
的功能有:AlconnaMatcher.send
时传入的消息对象的自定义处理方式on_alconna
等新增参数extensions
,exclude_ext
extensions
: 需要加载的匹配扩展, 可以是扩展类或扩展实例exclude_ext
: 需要排除的匹配扩展, 可以是扩展类或扩展的id, 可以用来排除预期的全局加载的拓展discord
适配器增加DiscordSlashExtension
,其可自动将Alconna
对象翻译成 slash指令并注册,且将收到的指令交互事件转为指令供命令解析ALCONNA_GLOBAL_EXTENSIONS
,用来声明全局加载的扩展,例如entry_points
的格式,并且当不指定":"
后的属性时自动补全为":__extension__"
改进
修复
杂项
New Contributors
Full Changelog: v0.25.1...v0.26.0
This discussion was created from the release Nonebot Plugin Alconna 0.26.0.
Beta Was this translation helpful? Give feedback.
All reactions