Skip to content

Commit

Permalink
🔖 version 0.47.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Jun 17, 2024
1 parent c31d58e commit b08b40c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ _✨ Alconna Usage For NoneBot2 ✨_
- 完整的 Alconna 特性支持
- 自动回复命令帮助信息选项
- 跨平台的接收与发送消息(被动+主动)
- 对20种适配器的收发消息支持
- **20种适配器**的收发消息支持
-`got-reject` 更强大的补全会话机制
- 多种内置插件 (echo,help,lang)
- i18n 支持
Expand All @@ -46,9 +46,9 @@ NoneBot 文档: [📖这里](https://nonebot.dev/docs/next/best-practice/alconna

```python
from nonebot import get_driver
from nonebot_plugin_alconna import UniMessage, SupportScope, on_alconna
from nonebot_plugin_alconna import Target, UniMessage, SupportScope, on_alconna

driver = get_driver
driver = get_driver()
test = on_alconna("test")

@test.handle()
Expand All @@ -63,7 +63,7 @@ async def handle_foo():
await test.send("图片已收到")

@driver.on_startup
async def_():
async def _():
await Target.group("123456789", SupportScope.qq_client).send(UniMessage.image(path="test.png"))
```

Expand Down
2 changes: 1 addition & 1 deletion src/nonebot_plugin_alconna/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
from .uniseg import SupportAdapterModule as SupportAdapterModule
from .extension import add_global_extension as add_global_extension

__version__ = "0.46.6"
__version__ = "0.47.0"

__plugin_meta__ = PluginMetadata(
name="Alconna 插件",
Expand Down
2 changes: 1 addition & 1 deletion src/nonebot_plugin_alconna/uniseg/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
from .constraint import SupportAdapterModule as SupportAdapterModule
from .adapters import BUILDER_MAPPING, FETCHER_MAPPING, EXPORTER_MAPPING

__version__ = "0.46.6"
__version__ = "0.47.0"

__plugin_meta__ = PluginMetadata(
name="Universal Segment 插件",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_saa_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def tt_h(target: At):
]
).send()

patch_saa()
dispose = patch_saa()

async with app.test_matcher(test_cmd) as ctx:
adapter = get_adapter(Adapter)
Expand All @@ -40,3 +40,5 @@ async def tt_h(target: At):
"content": 'ok\n<at id="234"/>',
},
)

dispose()

0 comments on commit b08b40c

Please sign in to comment.