Skip to main content

nonebot-adapter-console

NoneBot-Adapter-Console

✨ Console 适配 ✨

配置

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

Source distribution for nonebot-adapter-console 0.10.0
File Size Uploaded
nonebot_adapter_console-0.10.0.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-adapter-console 0.10.0
File Interpreter ABI Platform
nonebot_adapter_console-0.10.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

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