yum install -y dnf
#安装dnf
dnf module install nodejs:16 -y
#使用dnf安装nodejs
yum -y install git
#安装git
yum -y install redis && redis-server --daemonize yes
#安装redis并启动
git clone https://gitee.com/yoimiya-kokomi/Yunzai-Bot
#克隆云崽主体
cd Yunzai-Bot
#进入云崽主体目录
git clone https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
#克隆载入喵喵插件
git clone https://gitee.com/Ctrlcvs/xiaoyao-cvs-plugin.git ./plugins/xiaoyao-cvs-plugin/
#克隆载入xiaoyao的图鉴插件
npm install cnpm -g --registry=https://registry.npm.taobao.org
#安装cnpm
cnpm install
#用cnpm安装,主要安装Puppeteer,下载chrome浏览器
yum install pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64 libXi.x86_64 libXtst.x86_64 cups-libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64 GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 -y && yum install libdrm libgbm libxshmfence -y && yum install nss -y && yum update nss -y;
#使用yum安装chrome依赖
yum groupinstall fonts -y
#使用yum安装字体
node app
#启动云崽