Skip to content

Commit 3be23c0

Browse files
committed
🔖 version 0.57.0
1 parent 916de24 commit 3be23c0

File tree

3 files changed

+28
-18
lines changed

3 files changed

+28
-18
lines changed

README.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ _✨ All Receive in One, And One Send All ✨_
2929
- 完整的 Alconna 特性支持
3030
- 自动回复命令帮助信息选项
3131
- 跨平台的接收与发送消息(被动+主动)
32-
-**20种适配器**的收发消息支持
32+
-**22种适配器**的收发消息支持
3333
-`got-reject` 更强大的补全会话机制
3434
- 多种内置插件 (echo,help,lang)
3535
- i18n 支持
@@ -48,7 +48,7 @@ NoneBot 文档: [📖这里](https://nonebot.dev/docs/next/best-practice/alconna
4848

4949
```python
5050
from nonebot import get_driver
51-
from nonebot_plugin_alconna import Target, UniMessage, SupportScope, on_alconna
51+
from nonebot_plugin_alconna import Target, UniMessage, SupportScope, on_alconna, message_recall
5252

5353
driver = get_driver()
5454
test = on_alconna("test")
@@ -62,7 +62,8 @@ async def handle_test():
6262

6363
@test.got("foo", prompt=UniMessage.template("{:Reply($message_id)}请输入图片"))
6464
async def handle_foo():
65-
await test.send("图片已收到")
65+
await test.send("图片已收到, 即将撤回")
66+
await message_recall()
6667

6768
@driver.on_startup
6869
async def _():
@@ -114,7 +115,7 @@ async def _():
114115
| 元素\适配器 | OneBot V11 | OneBot V12 | Telegram | 飞书 | Github | QQ-API | _钉钉_ | Console | 开黑啦 | Mirai | _Ntchat_ | MineCraft | Discord | _Red_ | Satori | Dodo IM | Kritor | Tailchat | Mail | 微信公众号 | 黑盒语音 | Gewechat |
115116
|------------------|------------|------------|----------|----|--------|--------|------|---------|-----|-------|----------|-----------|---------|-------|--------|---------|--------|----------|------|-------|------|----------|
116117
| 文本 Text |||||||||||||||||||||||
117-
| 样式文本 Styled Text | 🚫 | 🚫 || 🚫 |||||| 🚫 | 🚫 || 🚫 | 🚫 || 🚫 | 🚫 ||| 🚫 | 🚫 | 🚫 |
118+
| 样式文本 Styled Text | 🚫 | 🚫 || |||||| 🚫 | 🚫 || 🚫 | 🚫 || 🚫 | 🚫 ||| 🚫 | 🚫 | 🚫 |
118119
| 提及用户 At(user) ||||| ⬆️ ||| 🚫 |||| 🚫 ||||||| ⬆️ | 🚫 | ⬆️ ||
119120
| 提及角色 At(role) | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 | 🚫 | 🚫 || 🚫 ||| 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
120121
| 提及频道 At(channel) | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 | 🚫 || 🚫 | 🚫 | 🚫 || 🚫 ||| 🚫 || ⬆️ | 🚫 | 🚫 | 🚫 |
@@ -126,22 +127,29 @@ async def _():
126127
| 视频 Video ||||| 🚫 || 🚫 | 🚫 |||| 🚫 | ⬆️ ||||| 🚫 ||| 🚫 ||
127128
| 文件 File | ⬇️,⬆️(🚧) |||| 🚫 || 🚫 | 🚫 |||| 🚫 | ⬆️ ||| ⬇️ | ⬇️ ||| 🚫 | 🚫 ||
128129
| 回复 Reply ||||| 🚫 || 🚫 | 🚫 |||| 🚫 |||||||| 🚫 | ⬆️ ||
129-
| 引用转发 Reference || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 | 🚫 | 🚫 ||| 🚫 || 🚫 | 🚫 | 🚫 | 🚫 ||
130+
| 引用转发 Reference || 🚫 | 🚫 | | 🚫 | 🚫 | 🚫 | 🚫 | 🚫 || 🚫 | 🚫 | 🚫 ||| 🚫 || 🚫 | 🚫 | 🚫 | 🚫 ||
130131
| 超级消息 Hyper || 🚫 | 🚫 | ⬇️ | 🚫 || 🚫 | 🚫 |||| 🚫 | 🚫 || 🚫 | 🚫 || 🚫 | 🚫 || 🚫 ||
131132
| 按钮 Button | 🚫 | 🚫 | ⬆️ | 🚫 | 🚫 || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 | ⬆️ || 🚫 || 🚫 || 🚫 | 🚫 | 🚫 | 🚫 | 🚫 |
132133
| 其余 Other |||||||||||||||||||||||
133134

134-
#### 消息 reaction
135-
136-
- onebot11 (🚧)
137-
- qq
138-
- dodo
139-
- discord
140-
- feishu
141-
- kritor (react)
142-
- kook
143-
- satori
144-
- telegram
135+
136+
### 支持的消息操作
137+
138+
- ✅: 支持
139+
- ❌: 插件/适配器未支持
140+
- 🚫: 协议未支持
141+
- (🚧): 计划中或部分支持或为实验性支持
142+
143+
> [!WARNING]
144+
> 斜体的协议名称意味着其协议或其适配器长时间未维护或已失效
145+
146+
| 操作\适配器 | OneBot V11 | OneBot V12 | Telegram | 飞书 | Github | QQ-API | _钉钉_ | Console | 开黑啦 | Mirai | _Ntchat_ | MineCraft | Discord | _Red_ | Satori | Dodo IM | Kritor | Tailchat | Mail | 微信公众号 | 黑盒语音 | Gewechat |
147+
|---------------|------------|------------|----------|----|--------|--------|------|---------|-----|-------|----------|-----------|---------|-------|--------|---------|--------|----------|------|-------|------|----------|
148+
| 发送 Send |||||||||||||||||||||||
149+
| 撤回 Recall |||||||| 🚫 |||| 🚫 ||||||| 🚫 | 🚫 | 🚫 ||
150+
| 编辑 Edit | 🚫 | 🚫 |||| 🚫 || 🚫 || 🚫 | 🚫 | 🚫 || 🚫 ||| 🚫 | 🚫 || 🚫 | 🚫 | 🚫 |
151+
| 表情响应 Reaction | ✅(🚧) | 🚫 ||||| 🚫 | 🚫 || 🚫 | 🚫 | 🚫 || 🚫 ||||| 🚫 | 🚫 | 🚫 | 🚫 |
152+
145153

146154
## 配置项
147155

src/nonebot_plugin_alconna/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
from .uniseg import FallbackStrategy as FallbackStrategy
130130
from .uniseg import UniversalMessage as UniversalMessage
131131
from .uniseg import UniversalSegment as UniversalSegment
132+
from .uniseg import message_reaction as message_reaction
132133
from .params import AlconnaExecResult as AlconnaExecResult
133134
from .params import AlconnaDuplication as AlconnaDuplication
134135
from .shortcut import command_from_json as command_from_json
@@ -142,7 +143,7 @@
142143
from .uniseg import SupportAdapterModule as SupportAdapterModule
143144
from .extension import add_global_extension as add_global_extension
144145

145-
__version__ = "0.56.2"
146+
__version__ = "0.57.0"
146147
__supported_adapters__ = set(m.value for m in SupportAdapterModule.__members__.values()) # noqa: C401
147148
__plugin_meta__ = PluginMetadata(
148149
name="Alconna 插件",

src/nonebot_plugin_alconna/uniseg/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,12 @@
5858
from .params import UniversalSegment as UniversalSegment
5959
from .constraint import SerializeFailed as SerializeFailed
6060
from .fallback import FallbackStrategy as FallbackStrategy
61+
from .functions import message_reaction as message_reaction
6162
from .segment import apply_media_to_url as apply_media_to_url
6263
from .constraint import SupportAdapterModule as SupportAdapterModule
6364
from .adapters import alter_get_builder, alter_get_fetcher, alter_get_exporter
6465

65-
__version__ = "0.56.2"
66+
__version__ = "0.57.0"
6667

6768
__plugin_meta__ = PluginMetadata(
6869
name="Universal Segment 插件",

0 commit comments

Comments
 (0)