[!NOTE] Mirai 及 mirai-api-http 现处于停滞更新状态
本项目仅为仍然使用 mirai-api-http 的用户提供支持
配置
修改 NoneBot 配置文件 .env 或者 .env.*。
Driver
参考 driver 配置项,添加 HTTPClient 和 WebSocketClient 支持。
如:
DRIVER=~httpx+~websockets
或
DRIVER=~aiohttp
MIRAI_CLIENTS
配置连接配置,如:
MIRAI_CLIENTS='
[
{
"host": "localhost",
"port": "8080",
"account": 1234567890,
"verify_key": "xxx"
}
]
'
host 与 port 为 mirai-api-http 服务的监听地址与端口,
account 为当前机器人的 QQ 号,
verify_key 为 mirai-api-http 的 verifyKey。
相关项目/鸣谢
Release files for nonebot-adapter-mirai 2.3.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_adapter_mirai-2.3.3.tar.gz | 44.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_adapter_mirai-2.3.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.8 kB
Release files / nonebot_adapter_mirai-2.3.3.tar.gz
| Download URL | nonebot_adapter_mirai-2.3.3.tar.gz |
|---|---|
| Size | 44.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4953875c368bfe66027bc34b7240bc99a8e129647372d5a61b2d55e0b6a9582e
|
|
BLAKE2b-256 checksum How to use checksums |
5af6fd42434804fac915145501bf3f2b194518c737a5edff2aad23c303918ff1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / nonebot_adapter_mirai-2.3.3-py3-none-any.whl
| Download URL | nonebot_adapter_mirai-2.3.3-py3-none-any.whl |
|---|---|
| Size | 47.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ccac6b430486fafb35c70661f8e576e733f784942bc4cd2b93ebf56030a6f50d
|
|
BLAKE2b-256 checksum How to use checksums |
1cb9a8fd039f2b3d15b25b4dd84ff99d2fedd74396aaa3ce26013a03c0163640
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.18.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|