原神Q群机器人Yunzai-Bot linux服务器端搭建教程(附含机器人的群)
本文包含三种安装方式,请自行选择安装方法,一种失败可以尝试另一种
一键安装脚本
curl -o ybot.sh 02vps.cn/ybot.sh && chmod 777 ybot.sh && ./ybot.sh
常规安装方式
git clone https://gitee.com/yoimiya-kokomi/Yunzai-Bot.git
cd Yunzai-Bot
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
手动安装依赖
curl -sL https://deb.nodesource.com/setup_18.x | bash -
apt-get install -y nodejs
apt-get install redis -y
redis-server --daemonize yes
apt install chromium-browser -y
apt install -y --force-yes --no-install-recommends fonts-wqy-microhei
apt install git -y
git clone https://gitee.com/yoimiya-kokomi/Yunzai-Bot.git
cd Yunzai-Bot/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
运行方式
如果之前的安装没有报错,就应该能成功运行了,之后按照提示输入qq账号和密码,和其他验证信息。通过node app启动的接收消息可能不及时,推荐调试好后使用npm start命令来挂着