{"id":19990079,"url":"https://github.com/TimeRainStarSky/Yunzai","last_synced_at":"2025-05-04T09:34:21.651Z","repository":{"id":154968861,"uuid":"616875238","full_name":"TimeRainStarSky/Yunzai","owner":"TimeRainStarSky","description":"Yunzai 应用端，支持多账号，支持协议端：go-cqhttp、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord","archived":false,"fork":true,"pushed_at":"2024-10-29T08:47:37.000Z","size":841,"stargazers_count":361,"open_issues_count":15,"forks_count":34,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-10-29T09:58:45.899Z","etag":null,"topics":["bot","discord-bot","kook-bot","qqbot","qqguildbot","telegram-bot","wechat-bot"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"yoimiya-kokomi/Miao-Yunzai","license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TimeRainStarSky.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-03-21T09:08:20.000Z","updated_at":"2024-10-29T08:47:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"863a90f0-f99b-4b8e-b33a-19b97ec6f478","html_url":"https://github.com/TimeRainStarSky/Yunzai","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeRainStarSky%2FYunzai","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeRainStarSky%2FYunzai/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeRainStarSky%2FYunzai/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimeRainStarSky%2FYunzai/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimeRainStarSky","download_url":"https://codeload.github.com/TimeRainStarSky/Yunzai/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224391390,"owners_count":17303609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bot","discord-bot","kook-bot","qqbot","qqguildbot","telegram-bot","wechat-bot"],"created_at":"2024-11-13T04:50:57.734Z","updated_at":"2025-05-04T09:34:21.629Z","avatar_url":"https://github.com/TimeRainStarSky.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# TRSS-Yunzai\n\nYunzai 应用端，支持多账号，支持协议端：OneBotv11、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord、OPQBot、Lagrange\n\n[![访问量](https://visitor-badge.glitch.me/badge?page_id=TimeRainStarSky.Yunzai\u0026right_color=red\u0026left_text=访%20问%20量)](https://github.com/TimeRainStarSky/Yunzai)\n[![Stars](https://img.shields.io/github/stars/TimeRainStarSky/Yunzai?color=yellow\u0026label=收藏)](../../stargazers)\n[![Downloads](https://img.shields.io/github/downloads/TimeRainStarSky/Yunzai/total?color=blue\u0026label=下载)](../../archive/main.tar.gz)\n[![Releases](https://img.shields.io/github/v/release/TimeRainStarSky/Yunzai?color=green\u0026label=发行版)](../../releases/latest)\n\n[![访问量](https://profile-counter.glitch.me/TimeRainStarSky-Yunzai/count.svg)](https://github.com/TimeRainStarSky/Yunzai)\n\n\u003c/div\u003e\n\n- 基于 [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai)\n- 开发文档：[docs 分支](../../tree/docs)\n\n## TRSS-Yunzai 后续计划\n\n先刨坑，但也许会咕咕咕\n\n- 完善现有协议端\n- 支持更多协议端\n\n项目仅供学习交流使用，严禁用于任何商业用途和非法行为\n\n## 安装教程\n\n\u003cdetails\u003e\u003csummary\u003e脚本安装\u003c/summary\u003e\n\n- [🌌 TRSS](https://TRSS.me)\n- [🔼 Vercel](https://TRSS-Script.Vercel.app)\n- [🐱 GitHub](https://TimeRainStarSky.GitHub.io/TRSS_Script)\n- [🇬 Gitee](https://Gitee.com/TimeRainStarSky/TRSS_Script)\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e手动安装\u003c/summary\u003e\n\n\u003e 环境准备：Windows/Linux/MacOS/Android  \n\u003e [Node.js(\u003e=v23.11)](https://nodejs.org), [Valkey](https://valkey.io), [Git](https://git-scm.com), [Chrome(可选)](https://google.cn/chrome)\n\n1. Git Clone 项目\n\n请根据网络情况选择使用 GitHub 或 Gitee 安装\n\n```sh\ngit clone --depth 1 https://github.com/TimeRainStarSky/Yunzai\ngit clone --depth 1 https://gitee.com/TimeRainStarSky/Yunzai\ncd Yunzai\n```\n\n2. 安装 [pnpm](https://pnpm.io/zh/installation) 和依赖\n\n```sh\nnpm i -g pnpm\npnpm i\n```\n\n3. 前台运行\n\n| 操作 | 命令 |\n| ---- | ---- |\n| 启动 | node . |\n| 停止 | node . stop |\n| 守护 | node . daemon |\n\n4. 使用 [pm2](https://pm2.keymetrics.io) 后台运行\n\n| 操作 | 命令 |\n| ---- | ---- |\n| 启动 | pnpm start |\n| 停止 | pnpm stop |\n| 日志 | pnpm log |\n\n5. 开机自启\n\n```sh\npnpm start\npnpm pm2 save\npnpm pm2 startup\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eDocker 安装\u003c/summary\u003e\n\n```sh\nbash \u003c(curl -L https://github.com/TimeRainStarSky/Yunzai/raw/main/lib/tools/docker.sh)\nbash \u003c(curl -L https://gitee.com/TimeRainStarSky/Yunzai/raw/main/lib/tools/docker.sh)\n```\n\n| 参数 | 描述 | 默认值 |\n| ---- | ---- | ------ |\n| DIR | 安装文件夹 | $HOME/Yunzai |\n| CMD | 启动命令 | tsyz |\n| CMDPATH | 命令文件夹 | /usr/local/bin |\n| DKNAME | 容器名 | Yunzai |\n| DKURL | Docker 源 | docker.m.daocloud.io |\n| GITURL | GIT 源 | https://gitee.com/TimeRainStarSky/Yunzai |\n| APTURL | APT 源 | mirrors.ustc.edu.cn |\n| APTDEP | APT 依赖 | chromium fonts-lxgw-wenkai fonts-noto-color-emoji |\n| NPMURL | NPM 源 | https://registry.npmmirror.com |\n\n- 参数修改方法\n\n```sh\n参数1=\"值1\" 参数2=\"值2\" bash \u003c(x)\n```\n\n| 操作 | 命令 |\n| ---- | ---- |\n| 连接 | tsyz |\n| 断开 | Ctrl+P+Q |\n| 启动 | tsyz start |\n| 重启 | tsyz restart |\n| 停止 | tsyz stop |\n| 日志 | tsyz log 行数 |\n| 命令 | tsyz 命令 |\n\n\u003c/details\u003e\n\n## 使用教程\n\n1. 推荐安装插件(可选)\n\n```\n#安装genshin\n#安装miao-plugin\n#安装TRSS-Plugin\n```\n\n2. 启动协议端\n\n\u003cdetails\u003e\u003csummary\u003eWebSocket\u003c/summary\u003e\u003cblockquote\u003e\n\n\u003cdetails\u003e\u003csummary\u003eOneBotv11\u003c/summary\u003e\u003cblockquote\u003e\n\n\u003cdetails\u003e\u003csummary\u003ego-cqhttp\u003c/summary\u003e\u003cblockquote\u003e\n\n  下载运行 [go-cqhttp](https://docs.go-cqhttp.org)，选择反向 WebSocket，修改 `config.yml`，以下为必改项：\n\n  ```yaml\n  uin: 账号\n  password: '密码'\n  post-format: array\n  universal: ws://localhost:2536/OneBotv11\n  ```\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eLLOneBot\u003c/summary\u003e\u003cblockquote\u003e\n\n  下载安装 [LLOneBot](https://github.com/LLOneBot/LLOneBot)，启用反向 WebSocket，添加地址：\n\n  ```\n  ws://localhost:2536/OneBotv11\n  ```\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eShamrock\u003c/summary\u003e\u003cblockquote\u003e\n\n  下载安装 [Shamrock](https://whitechi73.github.io/OpenShamrock)，启用被动 WebSocket，添加地址：\n\n  ```\n  ws://localhost:2536/OneBotv11\n  ```\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eLagrange\u003c/summary\u003e\u003cblockquote\u003e\n\n  下载运行 [Lagrange.OneBot](https://lagrangedev.github.io/Lagrange.Doc/Lagrange.OneBot)，修改 `appsettings.json` 中 `Implementations`：\n\n  ```json\n  {\n    \"Type\": \"ReverseWebSocket\",\n    \"Host\": \"localhost\",\n    \"Port\": 2536,\n    \"Suffix\": \"/OneBotv11\",\n    \"ReconnectInterval\": 5000,\n    \"HeartBeatInterval\": 5000,\n    \"AccessToken\": \"\"\n  }\n  ```\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eComWeChat\u003c/summary\u003e\u003cblockquote\u003e\n\n下载运行 [ComWeChat](https://justundertaker.github.io/ComWeChatBotClient)，修改 `.env`，以下为必改项：\n\n```python\nwebsocekt_type = \"Backward\"\nwebsocket_url = [\"ws://localhost:2536/ComWeChat\"]\n```\n\n\u003cblockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eGSUIDCore\u003c/summary\u003e\u003cblockquote\u003e\n\n下载运行 [GenshinUID 插件](https://docs.sayu-bot.com/LinkBots/AdapterList.html)，GSUIDCore 连接地址 修改为：\n\n```\nws://localhost:2536/GSUIDCore\n```\n\n\u003cblockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003eOPQBot\u003c/summary\u003e\u003cblockquote\u003e\n\n下载运行 [OPQBot](https://opqbot.com)，启动参数添加：\n\n```\n-wsserver ws://localhost:2536/OPQBot\n```\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003c/blockquote\u003e\u003c/details\u003e\n\n\u003cdetails\u003e\u003csummary\u003e插件\u003c/summary\u003e\n\n- [ICQQ](../../../Yunzai-ICQQ-Plugin)\n- [QQBot](../../../Yunzai-QQBot-Plugin)\n- [WeChat](../../../Yunzai-WeChat-Plugin)\n- [KOOK](../../../Yunzai-KOOK-Plugin)\n- [Telegram](../../../Yunzai-Telegram-Plugin)\n- [Discord](../../../Yunzai-Discord-Plugin)\n- [Route](../../../Yunzai-Route-Plugin)\n\n\u003c/details\u003e\n\n3. 设置主人：发送 `#设置主人`，日志获取验证码并发送\n\n## 班级群(¿\n\n1. [用户(897643592)](https://qm.qq.com/q/7NxbviGbj)\n2. [开发者(833565573)](https://qm.qq.com/q/oFJR8VVECA)\n3. [机器人(907431599)](https://qm.qq.com/q/oCBOrfE29U)\n\n## 致谢\n\n| Nickname | Contribution |\n| -------- | ------------ |\n| [Yunzai-Bot](../../../../Le-niao/Yunzai-Bot) | 乐神的 Yunzai-Bot |\n| [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai) | 喵喵的 Miao-Yunzai |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTimeRainStarSky%2FYunzai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FTimeRainStarSky%2FYunzai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FTimeRainStarSky%2FYunzai/lists"}