Yunzai-Bot安装记录
### 安装Node.js
```bash
wget https://registry.npmmirror.com/-/binary/node/v16.17.0/node-v16.17.0-linux-x64.tar.gz
tar -zxvf node-v16.17.0-linux-x64.tar.gz
mv node-v16.17.0-linux-x64 node
vi /etc/profile
export PATH="/root/node/bin:$PATH"
```
### 安装Yunzai-Bot
```bash
yum -y install git
git clone --depth=1 -b main https://github.com/Le-niao/Yunzai-Bot.git
cd Yunzai-Bot/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
```
### 安装Redis
```bash
yum -y install redis
systemctl start redis
```
### 安装依赖库
```bash
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
```
### 安装中文字体
```bash
yum groupinstall fonts -y
```
### 安装插件
```bash
git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
cnpm install express
cnpm install multer
cnpm install body-parser
cnpm install jsonwebtoken
git clone https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
npm i pnpm -g
pnpm add image-size -w
```
### 启动Yunzai-Bot
```bash
node app
```