Skip to main content

nonebot

NoneBot-Adapter-Mirai

✨ mirai-api-http v2 协议适配 ✨

配置

修改 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。

相关项目/鸣谢

Metadata

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)

Source distribution for nonebot-adapter-mirai 2.3.3
File Size Uploaded Provenance Actions
nonebot_adapter_mirai-2.3.3.tar.gz 44.0 kB Without provenance Details for nonebot_adapter_mirai-2.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-adapter-mirai 2.3.3
File Interpreter ABI Platform Actions
nonebot_adapter_mirai-2.3.3-py3-none-any.whl Python 3 none any Details for nonebot_adapter_mirai-2.3.3-py3-none-any.whl

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

Security for nonebot-adapter-mirai 2.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page