mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-11-04 08:56:42 +00:00 
			
		
		
		
	📝 add tips for separated adapters in 2.0.0a11 docs
This commit is contained in:
		@@ -1,5 +1,11 @@
 | 
			
		||||
# CQHTTP 协议使用指南
 | 
			
		||||
 | 
			
		||||
## 安装 NoneBot CQHTTP 适配器
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
pip install nonebot-adapter-cqhttp
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 配置 CQHTTP 协议端(以 QQ 为例)
 | 
			
		||||
 | 
			
		||||
单纯运行 NoneBot 实例并不会产生任何效果,因为此刻 QQ 这边还不知道 NoneBot 的存在,也就无法把消息发送给它,因此现在需要使用一个无头 QQ 来把消息等事件上报给 NoneBot。
 | 
			
		||||
 
 | 
			
		||||
@@ -11,6 +11,12 @@
 | 
			
		||||
- [群机器人概述](https://developers.dingtalk.com/document/app/overview-of-group-robots)
 | 
			
		||||
- [开发企业内部机器人](https://developers.dingtalk.com/document/app/develop-enterprise-internal-robots)
 | 
			
		||||
 | 
			
		||||
## 安装 NoneBot 钉钉 适配器
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
pip install nonebot-adapter-ding
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 关于 DingAdapter 的说明
 | 
			
		||||
 | 
			
		||||
你需要显式的注册 ding 这个适配器:
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,6 @@
 | 
			
		||||
# 安装
 | 
			
		||||
 | 
			
		||||
## NoneBot
 | 
			
		||||
## 安装 NoneBot
 | 
			
		||||
 | 
			
		||||
:::warning 注意
 | 
			
		||||
请确保你的 Python 版本 >= 3.7。
 | 
			
		||||
@@ -67,6 +67,18 @@ poetry install --no-dev  # 推荐
 | 
			
		||||
pip install .  # 不推荐
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 安装适配器
 | 
			
		||||
适配器可以通过 `nb-cli` 在创建项目时根据你的选择自动安装,也可以自行使用 `pip` 安装
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
pip install nonebot-adapter-<adapter-name>
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
# 列出所有的适配器
 | 
			
		||||
nb adapter list
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 安装插件
 | 
			
		||||
 | 
			
		||||
插件可以通过 `nb-cli` 进行安装,也可以自行安装并加载插件。
 | 
			
		||||
 
 | 
			
		||||
@@ -28,6 +28,12 @@ Mirai-API-HTTP 的适配器以 [AGPLv3 许可](https://opensource.org/licenses/A
 | 
			
		||||
 | 
			
		||||
**为了便捷起见, 以下内容均以缩写 `MAH` 代替 `mirai-api-http`**
 | 
			
		||||
 | 
			
		||||
## 安装 NoneBot Mirai 适配器
 | 
			
		||||
 | 
			
		||||
```bash
 | 
			
		||||
pip install nonebot-adapter-mirai
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
## 配置 MAH 客户端
 | 
			
		||||
 | 
			
		||||
正如你可能刚刚在[CQHTTP 协议使用指南](./cqhttp-guide.md)中所读到的:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user