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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_bot_tap-0.0.3.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.3.tar.gz
Algorithm Hash digest
SHA256 27295114f6b2bb6d2392f2b56578a717a762a92ef593784c0b3f1a18b58ce0c2
MD5 b63a08f67810952d44f8ebfd9d29a179
BLAKE2b-256 c5deccb6046f8e10c1819d2cf2015a7ec2c1a37836a0b11e25672d378ee5f458

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_bot_tap-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 50ee717daf2486aab78b5f5b2bc5f4f02d7a3e21a057e85f3cec8846b02640af
MD5 4d35f80bcc73cc02ac9713d254aba951
BLAKE2b-256 f74c288e9a73adaeb5b6264a4c73d6fd8b17ef4e8658f21348ef0da5f9330258

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