From 860eae0d0ce4823feebfa2276ef7f6491766971c Mon Sep 17 00:00:00 2001 From: ikun Date: Sun, 5 May 2024 12:00:04 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=AE=8C=E5=96=84Lagrange.OneBot?= =?UTF-8?q?=E5=9B=BE=E6=96=87=E6=95=99=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/posts/deploy/platforms/lagrange.md | 50 +++++++++++++++++++------- 1 file changed, 38 insertions(+), 12 deletions(-) diff --git a/src/posts/deploy/platforms/lagrange.md b/src/posts/deploy/platforms/lagrange.md index eeae99ead..2bbadf474 100644 --- a/src/posts/deploy/platforms/lagrange.md +++ b/src/posts/deploy/platforms/lagrange.md @@ -6,24 +6,50 @@ head: title: 部署消息平台Lagrange的教程 icon: mobile order: 4 -author: RockChinQ -date: 2024-03-12 +author: RockChinQ,ikun0014 +date: 2024-05-05 --- -> 本文档仅为基本步骤,详细操作、答疑解惑及最新信息请前往[Lagrange官方文档](https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot/Config/)和[官方代码库](https://github.com/LagrangeDev/Lagrange.Core) - -## Lagrange部署 +## Lagrange介绍 Lagrange 是一个 QQNT 协议逆向工程框架,比 Shamrock 或 Mirai 更加轻便,在目前也较为稳定。通过 OneBot 11 协议接入,需选择使用`aiocqhttp`作为适配器,填写配置时可参考 Shamrock 的方式。 -请查看[文档](https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot/Config/) +可选平台(需要.NET 8 or 7支持): -:::note -其中涉及到签名地址可以视为必需,请前往Lagrange的官方Telegram群获取。 -::: +- Mac OS 没有设备请自测 +- Linux Ubuntu 22.04,Debian 12应该都可以 +- Windows 10,11,Server2019及以上 -配置文件示例: +## 步骤(Windows) -![image-20240503002011350](https://cos.thelazy.cn/pictures/202405030020431.png) +### 环境配置 -![image-20240503002053636](https://cos.thelazy.cn/pictures/202405030020679.png) \ No newline at end of file +安装.NET 8运行时,[点击直达微软官网下载](https://dotnet.microsoft.com/zh-cn/download/dotnet/thank-you/runtime-desktop-8.0.4-windows-x64-installer) + +### 从Github Actions下载最新的build + +需要登录Github后才能下载,如果你不需要部分特性,可以在Release下载,看图片3 + +[Github Actions](https://github.com/KonataDev/Lagrange.Core/actions) + +看图进行下载: + +![图片1](https://cos.thelazy.cn/pictures/202405051146016.png) + +![图片2](https://cos.thelazy.cn/pictures/202405051146016.png) + +![图片3](https://cos.thelazy.cn/pictures/202405051151432.png) + +### 尾声 + +解压你所下载的zip,打开到有Lagrange.OneBot.exe的目录,在此目录下打开cmd命令提示符,输入 +```bash +.\Lagrange.OneBot +``` +此时如果你的环境已配置好,应该会出现填写配置文件后按任意键进入Qrcode登录,否则按输出的文字重新安装.NET 8 + +配置文件填写示例: + +![QChatGPT](https://cos.thelazy.cn/pictures/202405030020431.png) + +![Lagrange.OneBot](https://cos.thelazy.cn/pictures/202405030020679.png) \ No newline at end of file