mirror of
				https://github.com/nonebot/nonebot2.git
				synced 2025-10-31 06:56:39 +00:00 
			
		
		
		
	添加API_ROOT配置说明
指引中似乎没有提及使用Http通信前需要配置API_ROOT,所以加上咯
This commit is contained in:
		| @@ -6,6 +6,11 @@ | ||||
|  | ||||
| [python-aiocqhttp]: https://github.com/richardchien/python-aiocqhttp | ||||
|  | ||||
| 因为需要使用HTTP通信,需配置酷Q HTTP API 插件的 HTTP 接口地址。需要在config.py中添加 | ||||
| ```python | ||||
| API_ROOT = 'http://127.0.0.1:5700' # 默认端口为5700 | ||||
| ``` | ||||
|  | ||||
| 要获取 bot 对象,可以通过如下两种方式: | ||||
|  | ||||
| ```python | ||||
|   | ||||
		Reference in New Issue
	
	Block a user