# Yunzai **Repository Path**: wzc_Test/Yunzai ## Basic Information - **Project Name**: Yunzai - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-3.0 - **Default Branch**: dev-w - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-11-20 - **Last Updated**: 2026-03-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Fork 概要 - 适配 [Lagrange.Onebot v1](https://github.com/misaka20002/Lagrange.Core) - 已全面适配 [Napcat](https://napneko.github.io/guide/napcat) - 11月22日更新: 由于目前 Lagr 已经关闭签名服务器,推荐转移到纯本地签名的 Napcat 平台 ## 已调整适配器适配 | method | api | about | | ------------------- | ----------------------- | -------------------------------------- | | pokeMember | group_poke | 群聊戳一戳 | | getFriendMsgHistory | get_friend_msg_history | 适配 message_id 以获取历史消息 | | getGroupMsgHistory | get_group_msg_history | 适配 message_id 以获取历史消息 | | ~~sendFriendFile~~ | ~~upload_private_file~~ | ~~发送文件,适配 file 仅支持本地Path~~ | | ~~sendGroupFile~~ | ~~upload_group_file~~ | ~~发送文件,适配 file 仅支持本地Path~~ | ~~### 呆毛 Fork 版 Lagrange.Onebot~~ ~~- 已经从源头(Lagrange.Onebot)上修复了 `upload_private_file` `upload_group_file` 文件 Base64 发送~~ ~~- 下载地址:[呆毛 Fork 版 Lagrange.Onebot](https://github.com/misaka20002/Lagrange.Core)~~ ## 已调整参数 | parameter | about | | --------- | ------------------------------ | | e.source | icqq 引用消息参数 e.source.seq | ## 已调整逻辑 | parameter | about | | --------- | ---------------------------------------------------------------------------------- | | e.reply | (msg, quote, { recallMsg, at }) recallMsg: Bot定时撤回回复消息时将不会撤回命令消息 | ## 已增加的 NapCat Onebot Api | method | api | about | | --------------------- | ----------------- | -------------------- | | setEmojiLike[^1] | setEmojiLike | 贴标签(设置表情点赞) | | getAiCharacters[^1] | getAiCharacters | 获取群AI音色信息 | | sendGroupAiRecord[^1] | sendGroupAiRecord | 获发送群AI语音 | | getLocalFileInfo[^1] | getLocalFileInfo | 获取文件信息 | [^1]: 由 [@127Wzc](https://github.com/127Wzc) 贡献添加 ## Fix bug - 修复锅巴设置中当插件的配置文件超过 1mb 时保存失败(PayloadTooLargeError) ## Add 新功能 - `#发言榜` # 安装方法 ### 方法一 常规安装 - 看 [安装教程](#安装教程) ### 方法二 切换 TRSS 版本到本仓库 ```bash # 在你的 TRSS 根目录执行 git remote set-url origin https://github.com/AIGC-Yunzai/TRSS-Yunzai-NapC.git # 或使用 Git 代理: # git remote set-url origin https://ghfast.top/https://github.com/AIGC-Yunzai/TRSS-Yunzai-NapC.git git fetch --all git reset --hard origin/main pnpm i ``` ### 方法三 直接替换文件 ```text 直接把本仓库的 plugins\adapter\OneBotv11.js 和 lib\plugins\loader.js 覆盖你的文件即可,但使用 #更新 后需要重新覆盖。 ```
# TRSS-Yunzai Yunzai 应用端,支持多账号,支持协议端:OneBotv11、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord、OPQBot、Lagrange [![访问量](https://visitor-badge.glitch.me/badge?page_id=TimeRainStarSky.Yunzai&right_color=red&left_text=访%20问%20量)](https://github.com/TimeRainStarSky/Yunzai) [![Stars](https://img.shields.io/github/stars/TimeRainStarSky/Yunzai?color=yellow&label=收藏)](../../stargazers) [![Downloads](https://img.shields.io/github/downloads/TimeRainStarSky/Yunzai/total?color=blue&label=下载)](../../archive/main.tar.gz) [![Releases](https://img.shields.io/github/v/release/TimeRainStarSky/Yunzai?color=green&label=发行版)](../../releases/latest) [![访问量](https://profile-counter.glitch.me/TimeRainStarSky-Yunzai/count.svg)](https://github.com/TimeRainStarSky/Yunzai)
- 基于 [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai) - 开发文档:[docs 分支](../../tree/docs) ## TRSS-Yunzai 后续计划 先刨坑,但也许会咕咕咕 - 完善现有协议端 - 支持更多协议端 项目仅供学习交流使用,严禁用于任何商业用途和非法行为 ## 安装教程
脚本安装 ```bash bash <(curl -sL https://gitee.com/Misaka21011/Yunzai-Bot-Shell/raw/master/install.sh) ```
手动安装 > 环境准备:Windows/Linux/MacOS/Android > [Node.js(>=v23.11)](https://nodejs.org), [Valkey](https://valkey.io), [Git](https://git-scm.com), [Chrome(可选)](https://google.cn/chrome) 1. Git Clone 项目 请根据网络情况选择使用 GitHub 或 Gitee 安装 ```sh git clone https://github.com/AIGC-Yunzai/TRSS-Yunzai-NapC.git ./TRSS-Yunzai cd TRSS-Yunzai ``` 2. 安装 [pnpm](https://pnpm.io/zh/installation) 和依赖 ```sh npm i -g pnpm pnpm i ``` 3. 前台运行 | 操作 | 命令 | | ---- | ------------- | | 启动 | node . | | 停止 | node . stop | | 守护 | node . daemon | 4. 使用 [pm2](https://pm2.keymetrics.io) 后台运行 | 操作 | 命令 | | ---- | ---------- | | 启动 | pnpm start | | 停止 | pnpm stop | | 日志 | pnpm log | 5. 开机自启 ```sh pnpm start pnpm pm2 save pnpm pm2 startup ```
Docker 安装 ```sh bash <(curl -L https://github.com/TimeRainStarSky/Yunzai/raw/main/lib/tools/docker.sh) bash <(curl -L https://gitee.com/TimeRainStarSky/Yunzai/raw/main/lib/tools/docker.sh) ``` | 参数 | 描述 | 默认值 | | ------- | ---------- | ------------------------------------------------- | | DIR | 安装文件夹 | $HOME/Yunzai | | CMD | 启动命令 | tsyz | | CMDPATH | 命令文件夹 | /usr/local/bin | | DKNAME | 容器名 | Yunzai | | DKURL | Docker 源 | docker.m.daocloud.io | | GITURL | GIT 源 | https://gitee.com/TimeRainStarSky/Yunzai | | APTURL | APT 源 | mirrors.ustc.edu.cn | | APTDEP | APT 依赖 | chromium fonts-lxgw-wenkai fonts-noto-color-emoji | | NPMURL | NPM 源 | https://registry.npmmirror.com | - 参数修改方法 ```sh 参数1="值1" 参数2="值2" bash <(x) ``` | 操作 | 命令 | | ---- | ------------- | | 连接 | tsyz | | 断开 | Ctrl+P+Q | | 启动 | tsyz start | | 重启 | tsyz restart | | 停止 | tsyz stop | | 日志 | tsyz log 行数 | | 命令 | tsyz 命令 |
Windows 安装程序 - [🐱 GitHub](https://GitHub.com/TimeRainStarSky/Yunzai-Windows-Installer/releases) - [🇬 GitCode](https://GitCode.com/TimeRainStarSky/Yunzai-Windows-Installer/releases)
## 使用教程 1. 推荐安装插件(可选) ``` #安装genshin #安装miao-plugin #安装TRSS-Plugin ``` 2. 启动协议端 - [Philia - 新协议开发中](../../../../TRSSo/Yunzai-Philia-Plugin)
WebSocket
OneBotv11
go-cqhttp
下载运行 [go-cqhttp](https://docs.go-cqhttp.org),选择反向 WebSocket,修改 `config.yml`,以下为必改项: ```yaml uin: 账号 password: '密码' post-format: array universal: ws://localhost:2536/OneBotv11 ```
LLOneBot
下载安装 [LLOneBot](https://github.com/LLOneBot/LLOneBot),启用反向 WebSocket,添加地址: ``` ws://localhost:2536/OneBotv11 ```
Shamrock
下载安装 [Shamrock](https://whitechi73.github.io/OpenShamrock),启用被动 WebSocket,添加地址: ``` ws://localhost:2536/OneBotv11 ```
Lagrange
下载运行 [Lagrange.OneBot](https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot),修改 `appsettings.json` 中 `Implementations`: ```json { "Type": "ReverseWebSocket", "Host": "localhost", "Port": 2536, "Suffix": "/OneBotv11", "ReconnectInterval": 5000, "HeartBeatInterval": 5000, "AccessToken": "" } ```
ComWeChat
下载运行 [ComWeChat](https://justundertaker.github.io/ComWeChatBotClient),修改 `.env`,以下为必改项: ```python websocekt_type = "Backward" websocket_url = ["ws://localhost:2536/ComWeChat"] ```
GSUIDCore
下载运行 [GenshinUID 插件](https://docs.sayu-bot.com/LinkBots/AdapterList.html),GSUIDCore 连接地址 修改为: ``` ws://localhost:2536/GSUIDCore ```
OPQBot
下载运行 [OPQBot](https://opqbot.com),启动参数添加: ``` -wsserver ws://localhost:2536/OPQBot ```
插件 - [ICQQ](../../../Yunzai-ICQQ-Plugin) - [QQBot](../../../Yunzai-QQBot-Plugin) - [WeChat](../../../Yunzai-WeChat-Plugin) - [KOOK](../../../Yunzai-KOOK-Plugin) - [Telegram](../../../Yunzai-Telegram-Plugin) - [Discord](../../../Yunzai-Discord-Plugin) - [Route](../../../Yunzai-Route-Plugin)
3. 设置主人:发送 `#设置主人`,日志获取验证码并发送 ## 开发文档 - [类型库](https://github.com/KaguyaJs/TRSS-Yunzai-Types) - [oicq](https://oicqjs.github.io/oicq) ## 班级群(¿ 1. [用户(897643592)](https://qm.qq.com/q/7NxbviGbj) 2. [开发者(833565573)](https://qm.qq.com/q/oFJR8VVECA) 3. [机器人(907431599)](https://qm.qq.com/q/oCBOrfE29U) ## 致谢 | Nickname | Contribution | | ----------------------------------------------------- | ------------------ | | [Yunzai-Bot](../../../../Le-niao/Yunzai-Bot) | 乐神的 Yunzai-Bot | | [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai) | 喵喵的 Miao-Yunzai |