Skip to main content

nonebot

NoneBot-Adapter-Milky

✨ NoneBot2 Milky 协议适配 / Milky Protocol Adapter for NoneBot2 ✨

协议介绍

Milky 协议

协议端

Lagrange,Milky (WIP)

配置

修改 NoneBot 配置文件 .env 或者 .env.*。

Driver

参考 driver 配置项,添加 HTTPClient 和 WebSocketClient 支持。

如:

DRIVER=~httpx+~websockets

或

DRIVER=~aiohttp

MILKY_CLIENTS

配置连接配置,如:

MILKY_CLIENTS='
[
  {
    "host": "localhost",
    "port": "8080",
    "access_token": "xxx"
  }
]
'

host 与 port 为 Milky 协议端设置的监听地址与端口,

access_token 为可选项,具体情况以 Milky 协议端为准。

示例

from nonebot import on_command
from nonebot.adapters.milky import Bot
from nonebot.adapters.milky.event import MessageEvent
from nonebot.adapters.milky.message import MessageSegment


matcher = on_command("test")

@matcher.handle()
async def handle_receive(bot: Bot, event: MessageEvent):
    if event.is_private:
        await bot.send(event, MessageSegment.text("Hello, world!"))

Metadata

Release files for nonebot-adapter-milky 0.1.2

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-milky 0.1.2
File Size Uploaded Provenance Actions
nonebot_adapter_milky-0.1.2.tar.gz 17.9 kB Without provenance Details for nonebot_adapter_milky-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 39.7 kB

Release files / nonebot_adapter_milky-0.1.2.tar.gz

Download URL nonebot_adapter_milky-0.1.2.tar.gz
Size 17.9 kB
Tags Source
SHA-256 checksum
How to use checksums
72e6601ed42dce2d8df2cd204d458915e638a4f2b61af4faf7ddad23f0c20f96
BLAKE2b-256 checksum
How to use checksums
bf8d8b1cdebb7382d077e490e6e74d6fbf28ddec0973401cda941be9e5852299
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure

Release files / nonebot_adapter_milky-0.1.2-py3-none-any.whl

Download URL nonebot_adapter_milky-0.1.2-py3-none-any.whl
Size 21.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0588546c315bac4b0db5fcbe9484021580713c87af6e0b7151bcf41e7d2b7a3f
BLAKE2b-256 checksum
How to use checksums
5fa92b07b138ffd64aa0dd088286578efa89fa1971d9e0a4f0b76217a0b1ef4d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.24.1 CPython/3.12.3 Linux/6.11.0-1014-azure

Security for nonebot-adapter-milky 0.1.2

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