mirror of
https://github.com/nonebot/nonebot2.git
synced 2025-02-18 00:30:13 +08:00
添加API_ROOT配置说明
指引中似乎没有提及使用Http通信前需要配置API_ROOT,所以加上咯
This commit is contained in:
parent
7d96bacbb9
commit
9a4f15a05c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user