Skip to main content

在 NoneBot 中管理你的 NoneBot 吧!

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-bot-tap

✨ 在 NoneBot 中管理你的 NoneBot 吧! ✨

license pypi python

📖 介绍

基于 NoneBot Agent的 NoneBot 插件,用于管理 NoneBot 机器人。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-bot-tap
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-bot-tap
pdm
pdm add nonebot-plugin-bot-tap
poetry
poetry add nonebot-plugin-bot-tap
conda
conda install nonebot-plugin-bot-tap

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_bot_tap"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 类型 默认值 说明
bot_tap_token str None 连接到Agent端的token
bot_tap_admin list [] 权限组
bot_tap_host str http://127.0.0.1 连接到Agent端的主机地址
bot_tap_port int 2519 连接到Agent端的端口
bot_tap_font_path str 自带的NotoSerifSC-Regular.otf 字体文件路径
bot_tap_font_size int 18 字体大小

[!NOTE] 如果你的 bot_tap_token 为纯数字, 请在填写时多加上一层引号, 例如 '"123456"'

使用前请先配置好 Agent 端

这里查看配置方法,配置完成后可手动创建文件进行导入,也可以通过部署 NoneBot WebUI 后快速导入,或者使用插件命令进行导入。

如果你想通过手动创建文件导入,请按照以下格式创建文件:

{
    "name":"Bot名称",
    "path":"Bot路径(Windows请使用双反斜杠)",
    "time":"2025年1月5日12时34分32秒",
    "id":"uuid",
    "isRunning":false,
    "pid":"Null"
}

并将其保存在 Agent 端的 bots 文件夹下,文件名为 uuid.json,其中 uuid 为你为 Bot 设置的 uuid

🎉 使用

/bot help 查看帮助

📑 支持的功能

  • Bot 列表
  • Bot 基本信息
  • Bot 启动/停止
  • Bot 日志
  • Bot 导入
  • 版本信息
  • 插件启用/禁用
  • 插件安装
  • 插件卸载
  • 插件列表
  • 适配器安装
  • 驱动器安装
  • nbcli 本体管理

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_bot_tap-0.0.2.tar.gz (9.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_bot_tap-0.0.2-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_bot_tap-0.0.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_bot_tap-0.0.2.tar.gz
  • Upload date:
  • Size: 9.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for nonebot_plugin_bot_tap-0.0.2.tar.gz
Algorithm Hash digest
SHA256 30900e1a89ead8aaa66597a28a89ac614cefa513624244ea0443a007aa7514f6
MD5 669ea35d443e9cfc35f61ab02fa82642
BLAKE2b-256 e71ff9b5bb47a0fb350621e78d390dc1e2dae8a8d858658d97af35e4272f11bf

See more details on using hashes here.

File details

Details for the file nonebot_plugin_bot_tap-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_bot_tap-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd7287587e1e83bad3c60e194944f8ce142fa9c4ae69973d70ba9817937c9819
MD5 cfc41ffe10ff217053ee3cb0a9b1e2de
BLAKE2b-256 39c2eb39802ca3efd73c9e7cb6820aa520a9d61d01aecd39690720d8907a5e1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page