Nonebot-plugin-alconna

Latest version: v0.53.1

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

Scan your dependencies

Page 22 of 22

0.11.0

变更
- telegram 适配器下的富文本解析支持 in https://github.com/nonebot/plugin-alconna/commit/e38d8dc529aab43c9fa846b5ad5612b0fd871546
python
from arclet.alconna import Args, Alconna
from nonebot_plugin_alconna.adapters.telegram import Bold

msg = "/com" + Bold("mand some_arg")
alc = Alconna("/command", Args["some_arg", Bold])
assert alc.parse(msg).some_arg.type == "bold"

- 补全会话配置新增配置项 `lite: bool` in https://github.com/nonebot/plugin-alconna/commit/66d917ddd1b5ed6207d8dbb257256c93cf908375

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.10.0...v0.11.0

0.10.0

变更
- `on_alconna` 现在返回的是 Matcher 子类 `AlconnaMatcher`
- `AlconnaMatcher` 增加了方法 `assign`, 作为 `handle([Check(assign(...))])` 的快捷写法:
python
from nonebot_plugin_alconna import on_alconna

cmd = on_alconna(...)
cmd.assign("foo.bar")
async def handle_foo_bar(...):
...

其等同于
python
from nonebot_plugin_alconna import on_alconna, Check, assign

cmd = on_alconna(...)
cmd.handle([Check(assign("foo.bar"))])
async def handle_foo_bar(...):
...


**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.9.3...v0.10.0

0.9.3

变更
- 新增依赖注入 `AlconnaExecResult (Dict[str, Any])`, 用来注入绑定在命令上并且 active=True 的响应函数的执行结果
- 修复 `funcommand` 自定义命令名称失效的问题
- `funcommand` 内部实现改用 on_alconna

**Full Changelog**: https://github.com/nonebot/plugin-alconna/compare/v0.9.0...v0.9.3

Page 22 of 22

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.