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
File details
Details for the file nonebot_adapter_mirai-2.3.2.tar.gz
.
File metadata
- Download URL: nonebot_adapter_mirai-2.3.2.tar.gz
- Upload date:
- Size: 44.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5495d306883180cb68b13b9e652b87b58dac2ed5a567e5bfe2bddc3d5ad2e6cf |
|
MD5 | 39c690aef8e16b614002154e7def7257 |
|
BLAKE2b-256 | 1883b356c552f345b8a21cc4fb014e33d50356f8f2e651b396e9b9ca06b20458 |
File details
Details for the file nonebot_adapter_mirai-2.3.2-py3-none-any.whl
.
File metadata
- Download URL: nonebot_adapter_mirai-2.3.2-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: pdm/2.16.1 CPython/3.10.12 Linux/6.5.0-1022-azure
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2220846977f2bf851140e9dabbe3677f05e1b7c1c1be75e62dbac045bfaf3c |
|
MD5 | b598f5dc09ff03b07ac12c3db5dcc045 |
|
BLAKE2b-256 | e93cc5fc93eba90ceec8616417373225848991b3fe4777a6551f5c8ae5634123 |