安装环境
安装软件源:
yum install -y epel-release
配置阿里云yum源:
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-8.repo
安装环境:
yum install -y redis chromium git
安装中文字体(可选):
yum groupinstall fonts -y
启动redis:
redis-server --daemonize yes
下载YZ机器人本体:
通过gitee:
git clone --depth=1 -b main https://gitee.com/Le-niao/Yunzai-Bot.git
或者通过github:
git clone --depth=1 -b main https://github.com/Le-niao/Yunzai-Bot.git
下载YZ机器人依赖
打开yunzai机器人文件夹:
cd 路径
cd /root/Yunzai-Bot/
配置pnpm
npm install pnpm -g
安装YZ机器人依赖:
pnpm install -P
启动
node app
配置其他插件
在 Yunzai-Bot 根目录下操作
依赖
cnpm install express multer body-parser jsonwebtoken image-size
喵喵
git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
图鉴
git clone --depth=1 https://gitee.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/
锅巴插件
git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
(锅巴插件配置)开放锅巴所需端口:
50831(默认)
查看端口是否开放:
firewall-cmd --query-port=50831/tcp
开放防火墙端口:
firewall-cmd --zone=public --add-port=50831/tcp --permanent
重启防火墙:
systemctl restart firewalld
启动Redis
redis-server --daemonize yes
更多插件库
https://gitee.com/yhArcadia/Yunzai-Bot-plugins-index