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 自带的Microsoft_YaHei_Consolas_Regular.ttf 字体文件路径
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.4.tar.gz (12.4 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.4-py3-none-any.whl (12.4 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_bot_tap-0.0.4.tar.gz
  • Upload date:
  • Size: 12.4 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.4.tar.gz
Algorithm Hash digest
SHA256 eef7db0aa00cc99333500eaeca7f98f9e5727c76bfc83141abb125ad0f1779e2
MD5 58453573296528650e451df95e287728
BLAKE2b-256 05ed2141642c983cc81695fca6de6fc799ed4c1f9195ca23c5181519752ed3a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bot_tap-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0cffce3acb779c6972d6943cb60a40003358ce2dc8921179b4c4eccc68d9f5cb
MD5 76be5546d138d295995b605c41480b6e
BLAKE2b-256 3fe008ac0e1b2eb22386ce3d0fb797580853e4af8d42fd9b6e465e4452f95dea

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