Skip to main content

ambot-inlinectl

AmritaBot 内联管理工具 — 在项目目录内通过 ambot 命令行管理 AmritaBot 的插件、数据库和运行。

安装

pip install ambot-inlinectl

使用

ambot <命令>

命令

ambot run

启动 bot。

ambot run

ambot run-in-sub

在子进程中启动 bot(等效于 ambot run,但通过新进程运行)。

ambot run-in-sub

ambot nb <参数...>

透传调用 nb-cli。自动加载 Amrita 框架后再执行原生命令。

ambot nb --help
ambot nb plugin list

ambot orm <参数...>

透传调用 nonebot-plugin-orm CLI。自动加载 Amrita 框架和 ORM 插件后执行。

ambot orm upgrade
ambot orm migrate

ambot plugin list

嗅探环境中所有已安装的插件:

  • amrita_plugin_* — pip 安装的 Amrita 插件
  • nonebot_plugin_* — pip 安装的 NoneBot 插件
  • plugins/ 目录 — 本地 Amrita 插件
  • src/plugins/ 目录 — 本地 NoneBot 插件
ambot plugin list

ambot plugin add <包名>

安装插件并注册到 pyproject.toml[tool.amrita.plugins]

  • 调用 uv add 安装包
  • 将包名追加到 [tool.amrita.plugins] 列表
ambot plugin add nonebot_plugin_orm
ambot plugin add amrita_plugin_example

ambot plugin remove <包名>

卸载插件并从 [tool.amrita.plugins] 移除:

  • 调用 uv remove 卸载包
  • 将包名从 [tool.amrita.plugins] 列表中移除
ambot plugin remove nonebot_plugin_orm

pyproject.toml 配置

ambot plugin add/remove 会自动维护 [tool.amrita.plugins] 列表,供 amrita.load_plugins() 在启动时读取:

[tool.amrita]
plugins = [
]

许可证

MIT

Download files

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

Source Distribution

ambot_inlinectl-0.1.2.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

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

ambot_inlinectl-0.1.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file ambot_inlinectl-0.1.2.tar.gz.

File metadata

  • Download URL: ambot_inlinectl-0.1.2.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ambot_inlinectl-0.1.2.tar.gz
Algorithm Hash digest
SHA256 71b13e3428279f4f36507d40e9f55ed199cfa6936aaaa508ca957c2976e725a7
MD5 42b7daed10020b65a253593564361726
BLAKE2b-256 be359f800596554484c783e86993e83797334523639029a239baee73fbe679b5

See more details on using hashes here.

File details

Details for the file ambot_inlinectl-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: ambot_inlinectl-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ambot_inlinectl-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 1cc38b59822bb14352568f464a912907bef6735c15f38d28e8e0cae9a3a5e5c0
MD5 ec7dbcbdba9f65e0916c5a38a4380aa2
BLAKE2b-256 f2d90ce1fef17e849e13970aa32e3f3b621f63a2fd21c9444d77f3f734128c51

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