Yunzai 应用端,支持多账号,支持协议端:OneBotv11、ComWeChat、GSUIDCore、ICQQ、QQBot、QQ频道、微信、KOOK、Telegram、Discord、OPQBot
- 基于 Miao-Yunzai
- 开发文档:docs 分支
先刨坑,但也许会咕咕咕
- 完善现有协议端
- 支持更多协议端
项目仅供学习交流使用,严禁用于任何商业用途和非法行为
环境准备: Windows or Linux,Node.js( 版本至少 v18 以上 ), Redis
1.克隆项目并安装 genshin miao-plugin TRSS-Plugin(可选)
请根据网络情况选择使用 GitHub 或 Gitee 安装
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
git clone --depth 1 https://github.com/TimeRainStarSky/TRSS-Plugin plugins/TRSS-Plugin
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
git clone --depth 1 https://Yunzai.TRSS.me plugins/TRSS-Plugin
2.安装 pnpm
npm install -g pnpm
3.安装依赖
pnpm i
4.运行
node app
5.启动协议端:
OneBotv11
go-cqhttp
下载运行 go-cqhttp,选择反向 WebSocket,修改 config.yml
,以下为必改项:
uin: 账号
password: '密码'
post-format: array
universal: ws://localhost:2536/go-cqhttp
Lagrange
下载运行 Lagrange.OneBot,修改 appsettings.json
中 Implementations
:
{
"Type": "ReverseWebSocket",
"Host": "localhost",
"Port": 2536,
"Suffix": "/OneBotv11",
"ReconnectInterval": 5000,
"HeartBeatInterval": 5000,
"AccessToken": ""
}
ComWeChat
下载运行 ComWeChat,修改 .env
,以下为必改项:
websocekt_type = "Backward"
websocket_url = ["ws://localhost:2536/ComWeChat"]
QQBot
米游社大别野
Telegram
Discord
6.设置主人:发送 #设置主人
,后台日志获取验证码并发送
Nickname | Contribution |
---|---|
Yunzai-Bot | 乐神的 Yunzai-Bot |
Miao-Yunzai | 喵喵的 Miao-Yunzai |