Skip to content

Nonebot Plugin Alconna 0.36.0

Compare
Choose a tag to compare
@RF-Tar-Railt RF-Tar-Railt released this 18 Jan 12:36
· 249 commits to master since this release

What's Changed

  • 新增了一个 patch_saa,能够在 nonebot-plugin-send-anything-anywhereMessageFactory.send 遇到不支持的平台时转用 uniseg 发送
  • 新增元素 Custom,可以由用户自定义设置序列化与反序列化:
     from nonebot_plugin_alconna import Custom, custom_register
     
     class MyCustom(Custom):
    
     	def export(self, msg_type: Message):
     		return msg_type.get_segment_class()("foo", {"bar": 123})
    
     @custom_register(MyCustom, "foo")
     def create(seg: MessageSegment):
     	return MyCustom("foo", {"bar": 123})
  • ⬆️ auto update by pre-commit hooks by @pre-commit-ci in #30
  • 修复 satori 适配器解析 at 元素的问题

Full Changelog: v0.35.1...v0.36.0