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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4953875c368bfe66027bc34b7240bc99a8e129647372d5a61b2d55e0b6a9582e |
|
MD5 | ae9160159bfdba620ccfd74c1f981ae5 |
|
BLAKE2b-256 | 5af6fd42434804fac915145501bf3f2b194518c737a5edff2aad23c303918ff1 |
Close
Hashes for nonebot_adapter_mirai-2.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccac6b430486fafb35c70661f8e576e733f784942bc4cd2b93ebf56030a6f50d |
|
MD5 | 93386e8b386a181c465dd67215c6d5bc |
|
BLAKE2b-256 | 1cb9a8fd039f2b3d15b25b4dd84ff99d2fedd74396aaa3ce26013a03c0163640 |