Miao-Yunzai/README.md

186 lines
4.9 KiB
Markdown
Raw Normal View History

2023-05-11 16:03:18 +08:00
<div align="center">
# TRSS-Yunzai
2023-11-04 15:56:13 +08:00
Yunzai 应用端支持多账号支持协议端go-cqhttp、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord、OPQBot
2023-05-11 16:03:18 +08:00
[![访问量](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)
</div>
- 基于 [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai) 改造,需要同时安装 [miao-plugin](../../../../yoimiya-kokomi/miao-plugin)
- 开发文档:[docs 分支](../../tree/docs)
## TRSS-Yunzai 后续计划
先刨坑,但也许会咕咕咕
- 完善现有协议端
- 支持更多协议端
项目仅供学习交流使用,严禁用于任何商业用途和非法行为
## 使用方法
### 建议使用 TRSS Script 一键安装管理
- [🌌 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 or LinuxNode.js [版本至少 v18 以上](http://nodejs.cn/download) [Redis](https://redis.io/docs/getting-started/installation)
2023-08-28 20:13:04 +08:00
1.克隆项目并安装 genshin miao-plugin TRSS-Plugin(可选)
2023-05-11 16:03:18 +08:00
2023-08-28 20:13:04 +08:00
请根据网络情况选择使用 GitHub 或 Gitee 安装
2023-05-11 16:03:18 +08:00
```
git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai
cd Yunzai
git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
git clone --depth 1 https://github.com/yoimiya-kokomi/miao-plugin plugins/miao-plugin
2023-08-28 20:13:04 +08:00
git clone --depth 1 https://github.com/TimeRainStarSky/TRSS-Plugin plugins/TRSS-Plugin
```
2023-05-11 16:03:18 +08:00
2023-08-28 20:13:04 +08:00
```
2023-05-11 16:03:18 +08:00
git clone --depth 1 https://gitee.com/TimeRainStarSky/Yunzai
cd Yunzai
git clone --depth 1 https://gitee.com/TimeRainStarSky/Yunzai-genshin plugins/genshin
git clone --depth 1 https://gitee.com/yoimiya-kokomi/miao-plugin plugins/miao-plugin
2023-08-28 20:13:04 +08:00
git clone --depth 1 https://Yunzai.TRSS.me plugins/TRSS-Plugin
2023-05-11 16:03:18 +08:00
```
2023-08-28 20:13:04 +08:00
2.安装 [pnpm](https://pnpm.io/zh/installation)
2023-05-11 16:03:18 +08:00
```
2023-08-28 20:13:04 +08:00
npm install -g pnpm
2023-05-11 16:03:18 +08:00
```
3.安装依赖
```
2023-08-28 20:13:04 +08:00
pnpm i
2023-05-11 16:03:18 +08:00
```
4.运行
```
node app
```
5.启动协议端:
<details><summary>go-cqhttp</summary>
下载运行 [go-cqhttp](https://docs.go-cqhttp.org),选择反向 WebSocket修改 `config.yml`,以下为必改项:
```
uin: 账号
password: '密码'
post-format: array
universal: ws://localhost:2536/go-cqhttp
```
</details>
<details><summary>ComWeChat</summary>
下载运行 [ComWeChat](https://justundertaker.github.io/ComWeChatBotClient),修改 `.env`,以下为必改项:
```
websocekt_type = "Backward"
websocket_url = ["ws://localhost:2536/ComWeChat"]
```
</details>
<details><summary>GSUIDCore</summary>
下载运行 [GenshinUID 插件](http://docs.gsuid.gbots.work/#/AdapterList)GSUIDCore 连接地址 修改为:
```
ws://localhost:2536/GSUIDCore
```
</details>
2023-05-11 16:03:18 +08:00
<details><summary>ICQQ</summary>
[TRSS-Yunzai ICQQ Plugin](../../../Yunzai-ICQQ-Plugin)
</details>
2023-11-04 15:56:13 +08:00
<details><summary>QQBot</summary>
[TRSS-Yunzai QQBot Plugin](../../../Yunzai-QQBot-Plugin)
</details>
2023-05-11 16:03:18 +08:00
<details><summary>QQ频道</summary>
[TRSS-Yunzai QQGuild Plugin](../../../Yunzai-QQGuild-Plugin)
</details>
<details><summary>微信</summary>
[TRSS-Yunzai WeChat Plugin](../../../Yunzai-WeChat-Plugin)
</details>
2023-09-07 17:08:41 +08:00
<details><summary>米游社大别野</summary>
[TRSS-Yunzai mysVilla Plugin](../../../Yunzai-mysVilla-Plugin)
</details>
2023-05-11 16:03:18 +08:00
<details><summary>KOOK</summary>
[TRSS-Yunzai KOOK Plugin](../../../Yunzai-KOOK-Plugin)
</details>
<details><summary>Telegram</summary>
[TRSS-Yunzai Telegram Plugin](../../../Yunzai-Telegram-Plugin)
</details>
<details><summary>Discord</summary>
[TRSS-Yunzai Discord Plugin](../../../Yunzai-Discord-Plugin)
</details>
2023-11-04 15:56:13 +08:00
<details><summary>OPQBot</summary>
下载运行 [OPQBot](https://opqbot.com),启动参数添加:
```
-wsserver ws://localhost:2536/OPQBot
```
</details>
<details><summary>路由</summary>
2023-07-23 19:04:24 +08:00
2023-11-04 15:56:13 +08:00
[TRSS-Yunzai Route Plugin](../../../Yunzai-Route-Plugin)
2023-07-23 19:04:24 +08:00
</details>
2023-05-11 16:03:18 +08:00
6.设置主人:发送 `#设置主人`,后台日志获取验证码并发送
## 致谢
| Nickname | Contribution |
| :-----------------------------------------------------------: | -------------------- |
| [Yunzai-Bot](../../../../Le-niao/Yunzai-Bot) | 乐神的 Yunzai-Bot |
| [Miao-Yunzai](../../../../yoimiya-kokomi/Miao-Yunzai) | 喵喵的 Miao-Yunzai |