326 words
2 minutes
(Yunzai-Bot)原神QQ群机器人安装教程

项目地址:https://github.com/Le-niao/Yunzai-Bot

插件地址:https://github.com/yoimiya-kokomi/miao-plugin

插件索引:https://github.com/yhArcadia/Yunzai-Bot-plugins-index

1. 安装方法#

环境准备: Linux,Node.js(版本至少v16以上),Redis

1.1 克隆项目#

git clone --depth=1 -b main https://github.com/Le-niao/Yunzai-Bot.git

进入Yunzai目录

cd Yunzai-Bot

1.2 安装pnpm,已安装的可以跳过#

npm install pnpm -g

1.3 安装插件#

在 云崽 根目录下执行

git clone https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/

若启动后日志提示:

--------插件载入错误--------
miao-plugin 缺少依赖:image-size
请执行安装依赖命令:pnpm add image-size -w

就先停止服务,执行安装提示给出的命令,然后重启服务

npm stop
pnpm add image-size -w
npm start

1.4 安装依赖#

pnpm install -P

1.5 运行(首次运行按提示输入登录)#

node app

1.6 后台运行#

npm start

2. 问题记录#

2.1 图片文字“方块乱码”#

由于系统中没有中文字体导致的,详细操作方法参考:CentOS 安装中文字体

2.2 缺少 libatk-bridge 导致的问题#

error while loading shared libraries: libatk-bridge-2.0.so.0: cannot open shared object file: No such file or directory

参考链接CentOS 7 chrome: error while loading shared libraries: libatk-bridge-2.0.so.0 解决办法

常见于安装puppeteer后使用时的提示,其实就是缺失一个库而已,执行如下指令安装即可:

yum install -y at-spi2-atk

2.3 缺少 libxkbcommon 导致的问题#

云崽部署问题解决贴

yum install -y libxkbcommon-devel
yum install -y libgbm-dev
yum install -y libgtk-3-0
(Yunzai-Bot)原神QQ群机器人安装教程
https://blog.doracoin.cc/posts/2022/2022-12-30-原神qq群机器人安装教程/
Author
Doracoin
Published at
2022-12-30
License
CC BY-NC-SA 4.0