Skip to main content

NoneBot-Adapter-LLBDS

✨ LiteLoaderBDS适配 ✨

注意事项

适配器使用 thread.join() 方法,会导致一定程度的阻塞。因此,建议用户在内网中运行 LLBDS 和 NoneBot2,并减少适配器提供的接口的高频使用

适配器目前尚未完善,欢迎在 bot.py 中补充 API (LLEventBridge那边也是),在 event.py 中补充事件!

配置

参数 类型 描述 默认值
LLBDS_TOKEN str LLBDS令牌,用于连接ws时进行身份验证 无
LLBDS_SERVER_ID Optional[str] LLBDS服务器ID,作为机器人的self_id,可留空 LLBDS
LLBDS_API_URL Optional[str] LLBDS API地址,例如 http://127.0.0.1:8081 http://127.0.0.1:8081

驱动

DRIVER=~fastapi+~aiohttp

LLBDS

参阅 LLEventBridge

示例插件

from nonebot import on_notice, on_command
from nonebot.params import CommandArg
from nonebot.log import logger
from nonebot_adapter_llbds.event import JoinEvent, MessageEvent
from nonebot_adapter_llbds.message import Message


notice = on_notice()
echo = on_command("echo", aliases={"回声"})


@notice.handle()
async def handle_join(event: JoinEvent):
    event.player.sendText("Hello, world!")


@echo.handle()
async def handle_echo(event: MessageEvent, message: Message = CommandArg()):
    await echo.send(message)
    logger.info(f"玩家 {event.player.name} 发送了 {event.message}")

Metadata

Release files for nonebot-adapter-llbds 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-llbds 0.1.2
File Size Uploaded Provenance Actions
nonebot_adapter_llbds-0.1.2.tar.gz 8.6 kB Without provenance Details for nonebot_adapter_llbds-0.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 19.8 kB

Release files / nonebot_adapter_llbds-0.1.2.tar.gz

Download URL nonebot_adapter_llbds-0.1.2.tar.gz
Size 8.6 kB
Tags Source
SHA-256 checksum
How to use checksums
812b86fdf855dac540439ac567366456687d7dc80556f086b605608fa84ff0ba
BLAKE2b-256 checksum
How to use checksums
06816550771dbc8e77957e8204b0a5b9c558361e904354f8e2ad9566a5ea3db6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.11.1 CPython/3.10.12

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

Download URL nonebot_adapter_llbds-0.1.2-py3-none-any.whl
Size 11.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
369552ade175ea05bc13e80038ee63d016e438601eab9ace27b5f8fe0a7989a7
BLAKE2b-256 checksum
How to use checksums
9f70f0ff680c87cf4f592d18affe1e3510b6f0abc3e2bfa8c3cfa1df7edb65ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.11.1 CPython/3.10.12

Security for nonebot-adapter-llbds 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