配置
修改 NoneBot 配置文件 .env 或者 .env.*。
Driver
参考 driver 配置项,直接使用 None 驱动器:
DRIVER=~none
console_bot_id
配置 Bot 的 ID, 默认为 robot
console_bot_name
配置 Bot 的名称, 默认为 Bot
console_strict_tome
配置是否使用严格的 ToMe 规则。默认为 False。
启用后,在群聊中发送的消息需要增加 @{bot_id} 才能满足 ToMe 的条件。
示例
from nonebot import on_command
from nonebot.adapters.console import Bot
from nonebot.adapters.console.event import MessageEvent
from nonebot.adapters.console.message import MessageSegment
matcher = on_command("test")
@matcher.handle()
async def handle_receive(bot: Bot, event: MessageEvent):
await bot.send(event, MessageSegment.text("Hello, world!"))
Metadata
Release files for nonebot-adapter-console 0.10.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_adapter_console-0.10.0.tar.gz | 9.0 kB | Without provenance | Details for nonebot_adapter_console-0.10.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_adapter_console-0.10.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_adapter_console-0.10.0-py3-none-any.whl |
Total release size: 20.3 kB
Release files / nonebot_adapter_console-0.10.0.tar.gz
| Download URL | nonebot_adapter_console-0.10.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aeb813038dd9e3403da5099d140b664582cb3d05471a2697ae27fe3e69843a47
|
|
BLAKE2b-256 checksum How to use checksums |
02e3abd2192ba5b7f839a3f3bebed70e333e69ad0ceb3ad8338928b4fe3064cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.26.7 CPython/3.12.3 Linux/6.17.0-1008-azure
|
Release files / nonebot_adapter_console-0.10.0-py3-none-any.whl
| Download URL | nonebot_adapter_console-0.10.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e8a8817866ace0e0df08a8c5d3cde558302f4c4d5b7c1a7eaff0af191dcbf024
|
|
BLAKE2b-256 checksum How to use checksums |
c51bc6e8452d4a4816230550d5b2e3aab8758fa2f652b33527f217852aa82910
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.26.7 CPython/3.12.3 Linux/6.17.0-1008-azure
|
Security for nonebot-adapter-console 0.10.0
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.