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.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c8f52cb6c7c48f54ba4140fedbb5cbff93208393aba41011d06a45cee04f985 |
|
MD5 | f6f239df5ebd567f7a3f6265cac108bc |
|
BLAKE2b-256 | aa342f27d329ecd931ada11842d4e25709426744e0f7cb008ed5441e227b1f7d |
Close
Hashes for nonebot_adapter_mirai-2.3.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecb562e258facdedfb63d1c898ad1ab589bfc6d9b586cc2afd85eadc757ca7cb |
|
MD5 | 4dd579b721b5fef4399997336d935638 |
|
BLAKE2b-256 | 498d7d26d61e67e2d4f236fd416dd050a64362066a542308db6be762ff6c7999 |