Mirai Api HTTP adapter for nonebot2
Project description
NoneBot-Adapter-Mirai
✨ mirai-api-http v2 协议适配 ✨
[!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
。
相关项目/鸣谢
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_adapter_mirai-2.3.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e8fe72b2e316f25dc1f122ebd7d05796786957988439c3608ceb29631de5fc4d |
|
MD5 | 5d4ff7e5f8b6ce2ea8a50deb7871e972 |
|
BLAKE2b-256 | 4c454a0a03c94585dbe22890fdcb25b3024115b7bee78939078614d1db560595 |
Close
Hashes for nonebot_adapter_mirai-2.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfd25038bef4f73be02edae986faecf7a8217828149a615efb2bf3ec7e32c372 |
|
MD5 | efadff5eb3aeec9ab3ea957884ed243f |
|
BLAKE2b-256 | 02c7fd0fefc581fc7a15382a2d1a647b9d5f30fae4d4f21b7b4c54b4175ce5c2 |