From 895c28ec32378e0bd07b3ebdaf910aedc4f322ef Mon Sep 17 00:00:00 2001 From: Vivien <34387011+vivien8261@users.noreply.github.com> Date: Tue, 14 Nov 2023 12:18:45 +0800 Subject: [PATCH] update --- docs/develop/adapters/index.md | 4 ++-- docs/develop/adapters/qqChannel.md | 6 +++--- docs/develop/basic/index.md | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/develop/adapters/index.md b/docs/develop/adapters/index.md index 3c224a13..efbcce6b 100644 --- a/docs/develop/adapters/index.md +++ b/docs/develop/adapters/index.md @@ -7,13 +7,13 @@ ## 适配器参数 adapter AmiyaBot 对象拥有一个适配器参数 adapter,接受一个 `BotAdapterProtocol` 的子类。默认值为 QQ -频道机器人的适配器 `TencentBotInstance`。 +频道机器人的适配器 `QQGuildBotInstance`。 ```python class AmiyaBot(BotHandlerFactory): def __init__(self, ... - adapter: Type[BotAdapterProtocol] = TencentBotInstance): + adapter: Type[BotAdapterProtocol] = QQGuildBotInstance): ... ``` diff --git a/docs/develop/adapters/qqChannel.md b/docs/develop/adapters/qqChannel.md index c57b05a6..9b4e094f 100644 --- a/docs/develop/adapters/qqChannel.md +++ b/docs/develop/adapters/qqChannel.md @@ -4,10 +4,10 @@ ## 沙箱环境 -使用 `TencentSandboxBotInstance` 适配器将 API 调用更改为沙箱环境。沙箱环境只会收到测试频道的事件,且调用 openapi 仅能操作测试频道。 +使用 `QQGuildSandboxBotInstance` 适配器将 API 调用更改为沙箱环境。沙箱环境只会收到测试频道的事件,且调用 openapi 仅能操作测试频道。 ```python -from amiyabot.adapters.tencent import TencentSandboxBotInstance +from amiyabot.adapters.tencent.qqGuild import QQGuildSandboxBotInstance -bot = AmiyaBot(..., adapter=TencentSandboxBotInstance) +bot = AmiyaBot(..., adapter=QQGuildSandboxBotInstance) ``` diff --git a/docs/develop/basic/index.md b/docs/develop/basic/index.md index 306c2817..5cdfe661 100644 --- a/docs/develop/basic/index.md +++ b/docs/develop/basic/index.md @@ -65,10 +65,10 @@ bot.set_prefix_keywords(['amiya', 'amy']) ## 沙箱环境 -使用 `TencentSandboxBotInstance` 适配器将 API 调用更改为沙箱环境。沙箱环境只会收到测试频道的事件,且调用 openapi 仅能操作测试频道。 +使用 `QQGuildSandboxBotInstance` 适配器将 API 调用更改为沙箱环境。沙箱环境只会收到测试频道的事件,且调用 openapi 仅能操作测试频道。 ```python -from amiyabot.adapters.tencent import TencentSandboxBotInstance +from amiyabot.adapters.tencent.qqGuild import QQGuildSandboxBotInstance -bot = AmiyaBot(..., adapter=TencentSandboxBotInstance) +bot = AmiyaBot(..., adapter=QQGuildSandboxBotInstance) ```