diff --git a/.github/README.md b/.github/README.md index 11afc22c6..8ee658169 100644 --- a/.github/README.md +++ b/.github/README.md @@ -110,6 +110,7 @@ | 🟢 | | LibreTV | https://libretv.is-an.org/ | 免费在线视频搜索与观看平台 | | | 🟢 | | 问卷星 | https://www.limesurvey.org/ | 在线问卷调查程序 | | | 🟢 | | LinkDing | https://github.com/sissbruecker/linkding/ | 自托管书签管理器 | | +| 🟢 | | LLTwoBot | https://llonebot.com/ | 一个使用 Nix 或 Docker 部署 LLOneBot 的安装。 | | | 🟢 | | Logto | https://logto.io/ | 开发者更好的身份基础设施,以及 Auth0 的开源替代方案。 | | | 🟢 | | Lucky | https://lucky666.cn/ | 软硬路由公网神器 | | | 🟢 | | 苹果CMS V10 | https://www.maccms.la/ | 基于ThinkPHP和Layui的多功能开源免费内容管理系统 | | diff --git a/README.md b/README.md index 58c08c5a3..4e88db0c1 100644 --- a/README.md +++ b/README.md @@ -105,6 +105,7 @@ | 🟢 | | LibreTV | https://libretv.is-an.org/ | 免费在线视频搜索与观看平台 | | | 🟢 | | 问卷星 | https://www.limesurvey.org/ | 在线问卷调查程序 | | | 🟢 | | LinkDing | https://github.com/sissbruecker/linkding/ | 自托管书签管理器 | | +| 🟢 | | LLTwoBot | https://llonebot.com/ | 一个使用 Nix 或 Docker 部署 LLOneBot 的安装。 | | | 🟢 | | Logto | https://logto.io/ | 开发者更好的身份基础设施,以及 Auth0 的开源替代方案。 | | | 🟢 | | Lucky | https://lucky666.cn/ | 软硬路由公网神器 | | | 🟢 | | 苹果CMS V10 | https://www.maccms.la/ | 基于ThinkPHP和Layui的多功能开源免费内容管理系统 | | diff --git a/apps/llonebot/README.md b/apps/llonebot/README.md new file mode 100644 index 000000000..65797f08b --- /dev/null +++ b/apps/llonebot/README.md @@ -0,0 +1,16 @@ +# LLTwoBot + +一个使用 Nix 或 Docker 部署 LLOneBot 的安装。 + +![LLTwoBot](https://file.lifebus.top/imgs/llonebot_cover.png) + +![](https://img.shields.io/badge/%E6%96%B0%E7%96%86%E8%90%8C%E6%A3%AE%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%B7%A5%E4%BD%9C%E5%AE%A4-%E6%8F%90%E4%BE%9B%E6%8A%80%E6%9C%AF%E6%94%AF%E6%8C%81-blue) + +## 使用说明 + +扫描登录即可 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) +![Ms Studio](https://analytics.lifebus.top/p/wJix5nI1W) diff --git a/apps/llonebot/data.yml b/apps/llonebot/data.yml new file mode 100644 index 000000000..9f8de4899 --- /dev/null +++ b/apps/llonebot/data.yml @@ -0,0 +1,17 @@ +additionalProperties: + key: llonebot + name: LLTwoBot + tags: + - WebSite + - Local + shortDescZh: 一个使用 Nix 或 Docker 部署 LLOneBot 的安装。 + shortDescEn: An installation that uses Nix or Docker to deploy LLOneBot. + type: website + crossVersionUpdate: true + limit: 0 + website: https://llonebot.com/ + github: https://github.com/llonebot/llonebot.nix/ + document: https://llonebot.com/guide/getting-started/ + architectures: + - amd64 + - arm64 diff --git a/apps/llonebot/latest/data.yml b/apps/llonebot/latest/data.yml new file mode 100644 index 000000000..a9868e5ef --- /dev/null +++ b/apps/llonebot/latest/data.yml @@ -0,0 +1,48 @@ +additionalProperties: + formFields: + - default: "/home/llonebot" + edit: true + envKey: LLONEBOT_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 3080 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: "" + edit: true + envKey: QUICK_LOGIN_QQ + labelZh: 快速登录QQ号码 + labelEn: Quick login QQ number + required: true + type: text + - default: 3000 + edit: true + envKey: PANEL_APP_PORT_ONEBOT_HTTP + labelZh: OneBot HTTP 端口 + labelEn: OneBot HTTP port + required: true + rule: paramPort + type: number + - default: 3001 + edit: true + envKey: PANEL_APP_PORT_ONEBOT_WS + labelZh: OneBot WebSocket 端口 + labelEn: OneBot WebSocket port + required: true + rule: paramPort + type: number + - default: 5600 + edit: true + envKey: PANEL_APP_PORT_SATORI + labelZh: Satori 端口 + labelEn: Satori port + required: true + rule: paramPort + type: number diff --git a/apps/llonebot/latest/docker-compose.yml b/apps/llonebot/latest/docker-compose.yml new file mode 100644 index 000000000..d2e36287b --- /dev/null +++ b/apps/llonebot/latest/docker-compose.yml @@ -0,0 +1,26 @@ +networks: + 1panel-network: + external: true + +services: + llonebot: + image: initialencounter/llonebot:latest + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:3080 + - ${PANEL_APP_PORT_ONEBOT_HTTP}:3000 + - ${PANEL_APP_PORT_ONEBOT_WS}:3001 + - ${PANEL_APP_PORT_SATORI}:5600 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${LLONEBOT_ROOT_PATH}/data:/root/.config/QQ + - ${LLONEBOT_ROOT_PATH}/llonebot:/root/llonebot + environment: + - TZ=Asia/Shanghai diff --git a/apps/llonebot/latest/envs/default.env b/apps/llonebot/latest/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/llonebot/latest/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/llonebot/latest/envs/global.env b/apps/llonebot/latest/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/llonebot/latest/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/llonebot/latest/scripts/init.sh b/apps/llonebot/latest/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/llonebot/latest/scripts/init.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/llonebot/latest/scripts/uninstall.sh b/apps/llonebot/latest/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/llonebot/latest/scripts/uninstall.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/llonebot/latest/scripts/upgrade.sh b/apps/llonebot/latest/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/llonebot/latest/scripts/upgrade.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +if [ -f .env ]; then + source .env + + # setup-1 add default values + CURRENT_DIR=$(pwd) + sed -i '/^ENV_FILE=/d' .env + sed -i '/^GLOBAL_ENV_FILE=/d' .env + echo "ENV_FILE=${CURRENT_DIR}/.env" >> .env + echo "GLOBAL_ENV_FILE=${CURRENT_DIR}/envs/global.env" >> .env + + echo "Check Finish." + +else + echo "Error: .env file not found." +fi diff --git a/apps/llonebot/logo.png b/apps/llonebot/logo.png new file mode 100644 index 000000000..2512e2b9c Binary files /dev/null and b/apps/llonebot/logo.png differ