添加API_ROOT配置说明

指引中似乎没有提及使用Http通信前需要配置API_ROOT,所以加上咯
This commit is contained in:
SDchao 2020-01-28 11:23:03 +08:00 committed by GitHub
parent 7d96bacbb9
commit 9a4f15a05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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