Skip to main content

一款便于管理 Lagrange.Onebot 的插件。

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-lagrange

✨ 一款方便管理 Lagrange.OneBot 的插件。 ✨

📖 介绍

本插件旨在使用户能够简单的使用 Lagrange.OneBot 来部署机器人。目前实现的功能有:

  • 自动配置使其连接上 NoneBot
  • 通过 WebUi 控制 Lagrange.
  • 提醒用户遇到登录失败的解决方法。
  • 根据系统自动安装合适的 Lagrange.OneBot.
WebUi

1 2 3

💿 安装

你可以使用 pip3 install nonebot-plugin-lagrange 来安装此插件。

⚙️ 配置

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

配置项 必填 默认值 说明
lagrange_path Lagrange Lagrange.OneBot 的安装和运行目录。
lagrange_auto_start True 是否在检测到有安装 Lgr 的情况下自动启动。
lagrange_auto_install True 是否在未安装 Lgr 的情况自动安装
lagrange_max_cache_log 500 最大缓存多少行日志
lagrange_webui True 是否启用 WebUi
lagrange_webui_token 登录 WebUi 的 token

🎉 使用

WebUi

在启动机器人时,你应该会看到一行日志:

08-19 10:50:54 [INFO] nonebot_plugin_lagrange | WebUi http://127.0.0.1:8080/lagrange?token=ijr...

其中 WebUi 字段后面的链接就是 WebUi 的地址。请注意,后面的 token 参数即为登录密码,请注意保管。你可以自己设置配置项 Lagrange_webui_token ,若检测到为空时将会自动生成一个 token 并储存在拉格兰目录下的 token.bin 文件中。

将这个链接复制到浏览器内并打开,如若出现界面则登录成功。

指令表

名称 权限 说明
status 超级用户 查看拉格兰状态

计划功能

  • 监控拉格兰日志,分析机器人的消息。

🙏 鸣谢

Lagrange

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_lagrange-1.0.9.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_lagrange-1.0.9-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_lagrange-1.0.9.tar.gz.

File metadata

  • Download URL: nonebot_plugin_lagrange-1.0.9.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.13.1 Darwin/23.6.0

File hashes

Hashes for nonebot_plugin_lagrange-1.0.9.tar.gz
Algorithm Hash digest
SHA256 b77ac2f04470af86c34d898138d37d7d82daecb4979746727747f98fa08ea30b
MD5 a34382a21068aab320fc2441de169377
BLAKE2b-256 ad8284c72411fc9338121a40ea82a23a230830f956aa661c0ad9177ecf34d08d

See more details on using hashes here.

File details

Details for the file nonebot_plugin_lagrange-1.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_lagrange-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 270e7d3518fdb3b048efa2c84f9fcda38dd6eadd6a2cfc192162758065da1cfa
MD5 83a0b74126d3c9f96618127d99e46ae9
BLAKE2b-256 4b00cf7f10a74e93239a30b06e529584030d04168f24f9d3bc51f522b69a6689

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