https://github.com/tporadowski/redis/releases
解压后,双击redis-server.exe
保持运行即可,会产生一个代码棱柱如图。
如果没有,说明没运行,尝试:
在redis根目录下新建start.bat,并写入
redis-server.exe redis.windows.conf
运行即可
曾经运行过redis,打开redis-cli.exe
,输入shutdown
,回车,输入exit
,回车,然后重复上述步骤即可。
clone
git clone https://gitee.com/Le-niao/Yunzai-bot.git
cd Yunzai-Bot
安装
配置
npm install --location=global cnpm --registry=https://registry.npmmirror.com
此处可能出现npm:command not found
的错误,使用管理员权限打开shell即可,因为非cmd权限无法访问node
具体操作方法:按住shift,打开右键菜单,选择使用powershell打开,重复上述配置即可。
安装
cnpm install
在yunzai根目录下,bash运行
# 1.clone
git clone https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
# 2.安装pnpm
npm i pnpm -g
# 安装image-size
pnpm add image-size -w
# 3.或者直接
npm i image-size -w
浏览器打开https://bbs.mihoyo.com/ys
F12访问网页后台,控制台输入代码document.cookie
复制产生的cookie 备用
node app
按照提示输入qq号,推荐密码留空,扫码登录
node app
完
[1] bilibili - 原神机器人Yunzai-Bot window搭建教程