diff --git a/apps/astrbot-napcat/4.8.95/data.yml b/apps/astrbot-napcat/4.8.95/data.yml new file mode 100644 index 000000000..1d39da663 --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/data.yml @@ -0,0 +1,78 @@ +additionalProperties: + formFields: + - default: "/home/astrbot-napcat" + edit: true + envKey: ASTRBOT_ROOT_PATH + labelZh: 数据持久化路径 + labelEn: Data persistence path + required: true + type: text + - default: 6185 + edit: true + envKey: PANEL_APP_PORT_HTTP + labelZh: WebUI 端口 + labelEn: WebUI port + required: true + rule: paramPort + type: number + - default: 6195 + edit: true + envKey: PANEL_APP_PORT_WECOM + labelZh: 企业微信 WebHook + labelEn: WeCom WebHook + required: true + rule: paramPort + type: number + - default: 11451 + edit: true + envKey: PANEL_APP_PORT_WECHAT + labelZh: 个人微信 WebHook + labelEn: WeChat WebHook + required: true + rule: paramPort + type: number + - default: 6199 + edit: true + envKey: PANEL_APP_PORT_QQ_WH + labelZh: QQ WebHook + labelEn: QQ WebHook + required: true + rule: paramPort + type: number + - default: 6196 + edit: true + envKey: PANEL_APP_PORT_QQ_API + labelZh: QQ API + labelEn: QQ API + required: true + rule: paramPort + type: number + - default: 6099 + edit: true + envKey: PANEL_APP_PORT_NAPCAT + labelZh: NapCat 端口 + labelEn: NapCat port + required: true + rule: paramPort + type: number + - default: "02:42:ac:11:00:02" + edit: true + envKey: NAPCAT_MAC_ADDRESS + labelZh: NapCat 容器 MAC 地址 + labelEn: NapCat container MAC address + required: true + type: text + - default: 1000 + edit: true + envKey: NAPCAT_UID + labelZh: NapCat 容器 UID + labelEn: NapCat container UID + required: true + type: number + - default: 1000 + edit: true + envKey: NAPCAT_GID + labelZh: NapCat 容器 GID + labelEn: NapCat container GID + required: true + type: number diff --git a/apps/astrbot-napcat/4.8.95/docker-compose.yml b/apps/astrbot-napcat/4.8.95/docker-compose.yml new file mode 100644 index 000000000..94819a562 --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/docker-compose.yml @@ -0,0 +1,49 @@ +networks: + 1panel-network: + external: true + +services: + napcat: + image: mlikiowa/napcat-docker:v4.8.95 + container_name: napcat-${CONTAINER_NAME} + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_NAPCAT}:6099 + mac_address: ${NAPCAT_MAC_ADDRESS:-02:42:ac:11:00:02} + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - ${ASTRBOT_ROOT_PATH}/data:/AstrBot/data + - ${ASTRBOT_ROOT_PATH}/ntqq:/app/.config/QQ + environment: + - TZ=Asia/Shanghai + - MODE=astrbot + - NAPCAT_UID=${NAPCAT_UID:-1000} + - NAPCAT_GID=${NAPCAT_GID:-1000} + astrbot: + image: soulter/astrbot:v3.5.23 + container_name: ${CONTAINER_NAME} + labels: + createdBy: "Apps" + restart: always + networks: + - 1panel-network + ports: + - ${PANEL_APP_PORT_HTTP}:6185 + - ${PANEL_APP_PORT_QQ_WH}:6199 + - ${PANEL_APP_PORT_QQ_API}:6196 + - ${PANEL_APP_PORT_WECOM}:6195 + - ${PANEL_APP_PORT_WECHAT}:11451 + env_file: + - ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env} + - ${ENV_FILE:-/etc/1panel/envs/default.env} + volumes: + - /etc/localtime:/etc/localtime:ro + - ${ASTRBOT_ROOT_PATH}/data:/AstrBot/data + - ${ASTRBOT_ROOT_PATH}/ntqq:/app/.config/QQ + - ${ASTRBOT_ROOT_PATH}/napcat/config:/app/napcat/config + environment: + - TZ=Asia/Shanghai diff --git a/apps/astrbot-napcat/4.8.95/envs/default.env b/apps/astrbot-napcat/4.8.95/envs/default.env new file mode 100644 index 000000000..cd05f46e6 --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/envs/default.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +ENV_FILE=.env diff --git a/apps/astrbot-napcat/4.8.95/envs/global.env b/apps/astrbot-napcat/4.8.95/envs/global.env new file mode 100644 index 000000000..e10989fe4 --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/envs/global.env @@ -0,0 +1,2 @@ +# copyright© 2024 XinJiang Ms Studio +TZ=Asia/Shanghai diff --git a/apps/astrbot-napcat/4.8.95/scripts/init.sh b/apps/astrbot-napcat/4.8.95/scripts/init.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/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/astrbot-napcat/4.8.95/scripts/uninstall.sh b/apps/astrbot-napcat/4.8.95/scripts/uninstall.sh new file mode 100644 index 000000000..c86c4fbca --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/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/astrbot-napcat/4.8.95/scripts/upgrade.sh b/apps/astrbot-napcat/4.8.95/scripts/upgrade.sh new file mode 100644 index 000000000..07fb8c3fe --- /dev/null +++ b/apps/astrbot-napcat/4.8.95/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/astrbot-napcat/README.md b/apps/astrbot-napcat/README.md new file mode 100644 index 000000000..5647b3111 --- /dev/null +++ b/apps/astrbot-napcat/README.md @@ -0,0 +1,46 @@ +# AstrBot + +AstrBot 是一个松耦合、异步、支持多消息平台部署、具有易用的插件系统和完善的大语言模型(LLM)接入功能的聊天机器人及开发框架。 + +![AstrBot](https://file.lifebus.top/imgs/astrbot_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) + +## 安装说明 + +> 默认用户名: `astrbot` +> +> 默认密码: `astrbot` + +## 特性 + +### 大语言模型对话 + +支持各种大语言模型,包括 OpenAI API、Google Gemini、Llama、Deepseek、ChatGLM 等,支持接入本地部署的大模型,通过 +Ollama、LLMTuner。具有多轮对话、人格情境、多模态能力,支持图片理解、语音转文字(Whisper)。 + +### 多消息平台接入 + +支持接入 QQ(OneBot、QQ 官方机器人平台)、QQ +频道、企业微信、微信公众号、飞书、Telegram、钉钉、Discord、KOOK、VoceChat。支持速率限制、白名单、关键词过滤、百度内容审核。 + +### Agent + +原生支持部分 Agent 能力,如代码执行器、自然语言待办、网页搜索。对接 Dify 平台,便捷接入 Dify 智能助手、知识库和 Dify +工作流。 + +### 插件扩展 + +深度优化的插件机制,支持开发插件扩展功能,极简开发。已支持安装多个插件。 + +### 可视化管理面板 + +支持可视化修改配置、插件管理、日志查看等功能,降低配置难度。集成 WebChat,可在面板上与大模型对话。 + +### 高稳定性、高模块化 + +基于事件总线和流水线的架构设计,高度模块化,低耦合。 + +--- + +![Ms Studio](https://file.lifebus.top/imgs/ms_blank_001.png) diff --git a/apps/astrbot-napcat/data.yml b/apps/astrbot-napcat/data.yml new file mode 100644 index 000000000..d8c263e21 --- /dev/null +++ b/apps/astrbot-napcat/data.yml @@ -0,0 +1,14 @@ +additionalProperties: + key: astrbot + name: AstrBot + tags: + - WebSite + - Local + shortDescZh: 多平台大模型机器人基础设施 + shortDescEn: The Multi-Platform LLM Bot Infrastructure + type: website + crossVersionUpdate: true + limit: 0 + website: https://astrbot.app/ + github: https://github.com/AstrBotDevs/AstrBot/ + document: https://astrbot.app/ diff --git a/apps/astrbot-napcat/logo.png b/apps/astrbot-napcat/logo.png new file mode 100644 index 000000000..cf9392030 Binary files /dev/null and b/apps/astrbot-napcat/logo.png differ diff --git a/apps/astrbot-napcat/logo.svg b/apps/astrbot-napcat/logo.svg new file mode 100644 index 000000000..76f1e0e1d --- /dev/null +++ b/apps/astrbot-napcat/logo.svg @@ -0,0 +1,13 @@ + + 新建项目 + + + + + + +