mirror of
https://github.com/nonebot/nonebot2.git
synced 2024-09-21 05:12:34 +00:00
Fix format
This commit is contained in:
parent
9a4f15a05c
commit
e52cf045cb
@ -6,10 +6,13 @@
|
|||||||
|
|
||||||
[python-aiocqhttp]: https://github.com/richardchien/python-aiocqhttp
|
[python-aiocqhttp]: https://github.com/richardchien/python-aiocqhttp
|
||||||
|
|
||||||
因为需要使用HTTP通信,需配置酷Q HTTP API 插件的 HTTP 接口地址。需要在config.py中添加
|
::: tip 提示
|
||||||
|
如果你在使用 HTTP 通信,要调用 CQHTTP API 要在 `config.py` 中添加:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
API_ROOT = 'http://127.0.0.1:5700' # 默认端口为5700
|
API_ROOT = 'http://127.0.0.1:5700' # 这里 IP 和端口应与 CQHTTP 配置中的 `host` 和 `port` 对应
|
||||||
```
|
```
|
||||||
|
:::
|
||||||
|
|
||||||
要获取 bot 对象,可以通过如下两种方式:
|
要获取 bot 对象,可以通过如下两种方式:
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user