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.8.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.8-py3-none-any.whl (28.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_lagrange-1.0.8.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.8.tar.gz
Algorithm Hash digest
SHA256 25b2434ef9100d827a9d54a30f5c2f07ee6da3d5c2c60429b14f42b2c714cd98
MD5 d1d99d6137b6fb7e72c53f3535462c42
BLAKE2b-256 2f52665dd077497b8ae864a0960fe309219977d1b1e06ad37a29fc5837113c9f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_lagrange-1.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 5296ab718a987a82c5c8eeb5ab5eaaee7d8eac391f415813e6a76bc9fed9e480
MD5 6245cb3f5a08b34488487af0fa501901
BLAKE2b-256 d7e105d1b0fb5606e0e4d853afed4c4e6ab6a6134024b591125c1520e8e39c05

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