环境准备: Windows or Linux,Node.js( 版本至少 v18 以上 ), Redis
- 克隆项目并安装 genshin miao-plugin
请根据网络情况选择 Github 安装或 Gitee 安装1
2
3
4
5
6
7
8
9
10
11# 使用 Github
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
# 使用Gitee
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- 安装 pnpm,已安装的可以跳过
1
2
3
4
5# 使用npmjs.org安装
npm install pnpm -g
# 指定国内源npmmirror.com安装
npm --registry=https://registry.npmmirror.com install pnpm -g- 安装依赖
1
2
3
4
5
6# 直接安装
pnpm install -P
# 如依赖安装缓慢或失败,可尝试更换国内npm源后再执行install命令
pnpm config set registry https://registry.npmmirror.com
pnpm install -P- 运行
1
node app
- 启动协议端:
go-cqhttp
下载运行 go-cqhttp,选择反向 WebSocket,修改
config.yml,以下为必改项:1
2
3
4uin: 账号
password: '密码'
post-format: array
universal: ws://localhost:2536/go-cqhttp
ComWeChat
下载运行 ComWeChat,修改
.env,以下为必改项:1
2websocekt_type = "Backward"
websocket_url = ["ws://localhost:2536/ComWeChat"]- 设置主人:发送
#设置主人,后台日志获取验证码并发送
摘选至 时雨◎星空 / Yunzai
- 设置主人:发送