Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TimeRainStarSky/Yunzai
Yunzai 应用端,支持多账号,支持协议端:go-cqhttp、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord
https://github.com/TimeRainStarSky/Yunzai
bot discord-bot kook-bot qqbot qqguildbot telegram-bot wechat-bot
Last synced: 1 day ago
JSON representation
Yunzai 应用端,支持多账号,支持协议端:go-cqhttp、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord
- Host: GitHub
- URL: https://github.com/TimeRainStarSky/Yunzai
- Owner: TimeRainStarSky
- License: gpl-3.0
- Fork: true (yoimiya-kokomi/Miao-Yunzai)
- Created: 2023-03-21T09:08:20.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-29T08:47:37.000Z (16 days ago)
- Last Synced: 2024-10-29T09:58:45.899Z (16 days ago)
- Topics: bot, discord-bot, kook-bot, qqbot, qqguildbot, telegram-bot, wechat-bot
- Language: JavaScript
- Homepage:
- Size: 821 KB
- Stars: 361
- Watchers: 4
- Forks: 34
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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 后续计划
先刨坑,但也许会咕咕咕
- 完善现有协议端
- 支持更多协议端项目仅供学习交流使用,严禁用于任何商业用途和非法行为
## 安装教程
脚本安装
- [🌌 TRSS](https://TRSS.me)
- [🔼 Vercel](https://TRSS-Script.Vercel.app)
- [🐱 GitHub](https://TimeRainStarSky.GitHub.io/TRSS_Script)
- [🇬 Gitee](https://Gitee.com/TimeRainStarSky/TRSS_Script)手动安装
> 环境准备:Windows/Linux/MacOS/Android
> [Node.js(>=v21)](https://nodejs.org), [Redis](https://redis.io), [Git](https://git-scm.com), [Chrome(可选)](https://google.cn/chrome)1. Git Clone 项目
请根据网络情况选择使用 GitHub 或 Gitee 安装
```sh
git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai
git clone --depth 1 https://gitee.com/TimeRainStarSky/Yunzai
cd Yunzai
```2. 安装 [pnpm](https://pnpm.io/zh/installation) 和依赖
```sh
npm i -g pnpm
pnpm i
```3. 前台运行
| 操作 | 命令 |
| ---- | ---- |
| 启动 | node . |
| 停止 | node . stop |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 命令 |## 使用教程
1. 推荐安装插件(可选)
```
#安装genshin
#安装miao-plugin
#安装TRSS-Plugin
```2. 启动协议端
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)
- [Lagrange](../../../Yunzai-Lagrange-Plugin)3. 设置主人:发送 `#设置主人`,日志获取验证码并发送
## 班级群(¿
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 |