mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-07-27 16:21:28 +00:00
✨ add cqhttp forward support
This commit is contained in:
@ -85,12 +85,12 @@ Config 配置对象
|
||||
Adapter 类型
|
||||
|
||||
|
||||
### _classmethod_ `register(driver, config)`
|
||||
### _classmethod_ `register(driver, config, **kwargs)`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
register 方法会在 driver.register_adapter 时被调用,用于初始化相关配置
|
||||
`register` 方法会在 `driver.register_adapter` 时被调用,用于初始化相关配置
|
||||
|
||||
|
||||
|
||||
|
@ -26,6 +26,9 @@ CQHTTP 配置类
|
||||
* `secret` / `cqhttp_secret`: CQHTTP HTTP 上报数据签名口令
|
||||
|
||||
|
||||
* `ws_urls` / `cqhttp_ws_urls`: CQHTTP 正向 Websocket 连接 Bot ID、目标 URL 字典
|
||||
|
||||
|
||||
# NoneBot.adapters.cqhttp.utils 模块
|
||||
|
||||
|
||||
|
@ -153,6 +153,9 @@ Driver 基类。
|
||||
* `adapter: Type[Bot]`: 适配器 Class
|
||||
|
||||
|
||||
* `**kwargs`: 其他传递给适配器的参数
|
||||
|
||||
|
||||
|
||||
### _abstract property_ `type`
|
||||
|
||||
|
@ -61,28 +61,6 @@ sidebarDepth: 0
|
||||
|
||||
|
||||
|
||||
## _exception_ `DriverException`
|
||||
|
||||
基类:`nonebot.exception.NoneBotException`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
代表 `Driver` 抛出的异常
|
||||
|
||||
|
||||
|
||||
## _exception_ `SetupFailed`
|
||||
|
||||
基类:`nonebot.exception.DriverException`
|
||||
|
||||
|
||||
* **说明**
|
||||
|
||||
`ForwardDriver` 建立连接失败
|
||||
|
||||
|
||||
|
||||
## _exception_ `PausedException`
|
||||
|
||||
基类:`nonebot.exception.NoneBotException`
|
||||
|
Reference in New Issue
Block a user