Nonebot-plugin-alconna

Latest version: v0.54.0

Safety actively analyzes 682244 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 22

0.47.1

- 修复导入插件时提示 `adapter satori: no module xxxxxxxxx` 的问题

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.47.0...v0.47.1

0.47.0

新增
- `UniMessage.filter` 方法,在筛选元素类型的同时可以传入自定义判断条件函数
- `patch_matcher_send` 方法,可以将 `matcher.send` 替换为经过 UniMessage 翻译过一次后再发送的情况(例如 ob11 -> uni -> satori)
- `help` 插件会根据 alc 命令对应的插件的元数据中的适配器支持条目来选择是否在 help 内显示该指令

改进
- `echo` 插件使用了 `ReplyMergeExtension`,即可以通过回复消息并只输入 `echo` 来执行:
![屏幕截图 2024-06-18 000545](https://github.com/nonebot/plugin-alconna/assets/42648639/aba2e60e-376c-4a9d-82e0-7e0f7377dc36)

- 升级 `Tarina` 至 0.5.4
- `builtin.uniseg.chronocat` 改为 `builtin.uniseg.market_face`, 并实现了现有适配器中关于商城表情的相关解析
- `patch_matcher_send` 和 `patch_saa` 会返回一个 `dispose` 函数,用于还原 patch 行为
- 现在 `AlconnaMatcher` 和 `AlconnaRule` 对 Alconna 都是弱引用

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.46.6...v0.47.0

0.46.6

What's Changed
* 🐛 support Satori 0.12 by shoucandanghehe in https://github.com/nonebot/plugin-alconna/pull/53


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.46.5...v0.46.6

0.46.5

What's Changed
* 给 `ReplyMergeExtension` 增加构造参数 `sep`, 用来指定拼接时的间隔字符
* 升级依赖,`Command` 现在可用 `.config` 方法配置 CommandMeta
* 更新内置插件 `lang`
* :arrow_up: auto update by pre-commit hooks by pre-commit-ci in https://github.com/nonebot/plugin-alconna/pull/51


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.46.4...v0.46.5

0.46.4

- 为 `MarkdownExtension` 增加一个 `text_to_image` 的参数,用来渲染md为图片
- `help` 指令增加 `--plugin-info` 选项,用来输出指令对应的插件信息:
![image](https://github.com/nonebot/plugin-alconna/assets/42648639/6d145ca0-2893-429e-a8e5-32fbd10d5d14)


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.46.3...v0.46.4

0.46.3

- 增加 `ReplyMergeExtension`, 其可以将回复的原消息合并到当前消息作为一部分参数:
python
from nonebot_plugin_alconna.builtins.extensions.reply import ReplyMergeExtension

preview = Command("preview <content:any>", "预览").build(auto_send_output=True, extensions=[ReplyMergeExtension()])
preview.handle()
async def preview_h(content):
await preview.finish("rendering preview: " + content)

<img width="430" alt="03ecceef1683874e924ef7a9f12762e9" src="https://github.com/nonebot/plugin-alconna/assets/42648639/0755f016-da96-4291-b372-e7d1fb6735cf">


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.46.1...v0.46.3

Page 4 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.