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.1.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.1-py3-none-any.whl (9.9 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_bot_tap-0.0.1.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.1.tar.gz
Algorithm Hash digest
SHA256 384bc4adafe1f1b94421deea6058d529244aeebe1ddee68ba0402bb22c02106a
MD5 a0d8f4824c84cdfc23671c04131ef66c
BLAKE2b-256 d41130d4e90905e6ab575ee152ec6ebd7631b97f5c78ef4ecbdbc9f49ed6159d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bot_tap-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b8157351c224d9ef591a6088a43ce1ff87322deedd80d24283e2a176940e0371
MD5 7782592b2e875672f8b7a6e43b025192
BLAKE2b-256 306fd66faa59c402836a9ee8c23f8fc01d63db78247b444c08b46522ef6a424f

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