From b497bb8c830d45aafe82659e295dbca057750e2f Mon Sep 17 00:00:00 2001 From: "noneflow[bot]" <129742071+noneflow[bot]@users.noreply.github.com> Date: Thu, 18 Apr 2024 10:30:35 +0000 Subject: [PATCH] :memo: Update changelog --- website/docs/best-practice/alconna/matcher.mdx | 17 ++++++++--------- website/docs/best-practice/alconna/uniseg.mdx | 3 ++- website/src/pages/changelog.md | 1 + 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/website/docs/best-practice/alconna/matcher.mdx b/website/docs/best-practice/alconna/matcher.mdx index bec9e1b1..186e681e 100644 --- a/website/docs/best-practice/alconna/matcher.mdx +++ b/website/docs/best-practice/alconna/matcher.mdx @@ -218,25 +218,25 @@ async def handle_test4(qux: Query[bool] = Query("baz.qux", False)): 本插件为以下适配器提供了专门的适配器标注: -| 协议名称 | 路径 | -|---------------------------------------------------------------------| ------------------------------------ | -| [OneBot 协议](https://github.com/nonebot/adapter-onebot) | adapters.onebot11, adapters.onebot12 | +| 协议名称 | 路径 | +| ------------------------------------------------------------------- | ------------------------------------ | +| [OneBot 协议](https://github.com/nonebot/adapter-onebot) | adapters.onebot11, adapters.onebot12 | | [Telegram](https://github.com/nonebot/adapter-telegram) | adapters.telegram | -| [飞书](https://github.com/nonebot/adapter-feishu) | adapters.feishu | +| [飞书](https://github.com/nonebot/adapter-feishu) | adapters.feishu | | [GitHub](https://github.com/nonebot/adapter-github) | adapters.github | | [QQ bot](https://github.com/nonebot/adapter-qq) | adapters.qq | -| [钉钉](https://github.com/nonebot/adapter-ding) | adapters.ding | +| [钉钉](https://github.com/nonebot/adapter-ding) | adapters.ding | | [Dodo](https://github.com/nonebot/adapter-dodo) | adapters.dodo | | [Console](https://github.com/nonebot/adapter-console) | adapters.console | -| [开黑啦](https://github.com/Tian-que/nonebot-adapter-kaiheila) | adapters.kook | +| [开黑啦](https://github.com/Tian-que/nonebot-adapter-kaiheila) | adapters.kook | | [Mirai](https://github.com/ieew/nonebot_adapter_mirai2) | adapters.mirai | | [Ntchat](https://github.com/JustUndertaker/adapter-ntchat) | adapters.ntchat | | [MineCraft](https://github.com/17TheWord/nonebot-adapter-minecraft) | adapters.minecraft | | [BiliBili Live](https://github.com/wwweww/adapter-bilibili) | adapters.bilibili | | [Walle-Q](https://github.com/onebot-walle/nonebot_adapter_walleq) | adapters.onebot12 | | [Discord](https://github.com/nonebot/adapter-discord) | adapters.discord | -| [Red 协议](https://github.com/nonebot/adapter-red) | adapters.red | -| [Satori 协议](https://github.com/nonebot/adapter-satori) | adapters.satori | +| [Red 协议](https://github.com/nonebot/adapter-red) | adapters.red | +| [Satori 协议](https://github.com/nonebot/adapter-satori) | adapters.satori | ## 条件控制 @@ -551,7 +551,6 @@ async def handle(result: Arparma): ]} /> - 补全会话配置如下: ```python diff --git a/website/docs/best-practice/alconna/uniseg.mdx b/website/docs/best-practice/alconna/uniseg.mdx index dfde17b4..9414714c 100644 --- a/website/docs/best-practice/alconna/uniseg.mdx +++ b/website/docs/best-practice/alconna/uniseg.mdx @@ -123,6 +123,7 @@ class Markdown(Custom): def markdown(seg: QQMessageSegment) -> Markdown: return Markdown("markdown", content=seg.data["content"]) ``` + ::: ## 通用消息序列 @@ -449,7 +450,6 @@ async def send( 实际上,`UniMessage` 同时提供了获取消息事件 id 与消息发送对象的方法: - @@ -513,6 +513,7 @@ class Target: ``` 其构造时需要如下参数: + - `id` 为目标id;若为群聊则为 group_id 或者 channel_id,若为私聊则为user_id - `parent_id` 为父级id;若为频道则为 guild_id,其他情况下可能为空字符串(例如 Feishu 下可作为部门 id) - `channel` 为是否为频道,仅当目标平台符合频道概念时 diff --git a/website/src/pages/changelog.md b/website/src/pages/changelog.md index 500672b2..c0dec7e6 100644 --- a/website/src/pages/changelog.md +++ b/website/src/pages/changelog.md @@ -24,6 +24,7 @@ toc_max_heading_level: 2 ### 📝 文档 +- Docs: 更新最佳实践的 Alconna 部分 [@RF-Tar-Railt](https://github.com/RF-Tar-Railt) ([#2656](https://github.com/nonebot/nonebot2/pull/2656)) - Docs: 添加 RocketChat 适配器说明 [@yanyongyu](https://github.com/yanyongyu) ([#2640](https://github.com/nonebot/nonebot2/pull/2640)) - Docs: 商店卡片样式调整 [@StarHeartHunt](https://github.com/StarHeartHunt) ([#2633](https://github.com/nonebot/nonebot2/pull/2633)) - Docs: 为商店插件卡片添加更多展示内容 [@AzideCupric](https://github.com/AzideCupric) ([#2626](https://github.com/nonebot/nonebot2/pull/2626))