Yuanshen QQ Robot Cloud Cub-Bot v3—Linux Server Nanny Level Construction Tutorial
1. Description
Take Tencent Cloud's lightweight application server as an example
CPU: 2 cores
Memory: 2G
Bandwidth: 4M
Cloud hard disk: 40G
2. Environmental preparation
- Pagoda Linux Panel
- Node.js (version at least v16 or above)
- Redis
- git
- Chromium
3. Installation steps
(1), cloud service reinstallation system
- Click More to choose to reinstall the system
- Click Apply Template to select the Pagoda Linux panel
- Click OK to scan the code to verify the installation
(2), Pagoda Linux panel login
- Click the instance name to view details, select Application Management
- Copy the sudo /etc/init.d/bt default command, click Login , and select one-key password-free login
- Paste sudo /etc/init.d/bt default to the command line and press Enter to view the login information of the pagoda panel
- Copy the URL to the browser address line and press Enter, enter the username and password to log in
- After successful login, associate the Tencent Cloud API key , and the pagoda panel will monitor and manage the server (you can view the association tutorial for how to associate, and the detailed tutorial will not be given here)
(3), install node.js environment
- Click the software store on the left panel , search for node.js version manager in the application search box , and click Install on the right
- Enter the node.js version manager settings , select the 16.19.1 version and click Install , and select the installed node.js at the top command line version
- Enter node -v to check the version
[root@VM-8-16-centos ~]# node -v
v16.19.1
(4), install the Redis database
- Click the software store on the left panel , search for Redis in the application search box , click Install on the right , and wait for the installation to complete.
(5), source package installation git
- Check the git version, if there is not fountain, please skip the second step
git --version
[root@VM-8-16-centos ~]# git --version
git version 1.8.3.1
2. Remove git, enter the command yum remove git
[root@VM-8-16-centos ~]# yum remove git
Loaded plugins: fastestmirror
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be erased
--> Processing Dependency: git = 1.8.3.1-23.el7_8 for package: perl-Git-1.8.3.1-23.el7_8.noarch
--> Processing Dependency: git for package: gettext-devel-0.19.8.1-3.el7.x86_64
--> Running transaction check
---> Package gettext-devel.x86_64 0:0.19.8.1-3.el7 will be erased
---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===================================================================================================================================================
Package Arch Version Repository Size
===================================================================================================================================================
Removing:
git x86_64 1.8.3.1-23.el7_8 @base 22 M
Removing for dependencies:
gettext-devel x86_64 0.19.8.1-3.el7 @base 1.4 M
perl-Git noarch 1.8.3.1-23.el7_8 @base 57 k
Transaction Summary
===================================================================================================================================================
Remove 1 Package (+2 Dependent packages)
Installed size: 24 M
Is this ok [y/N]: y
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Erasing : gettext-devel-0.19.8.1-3.el7.x86_64 1/3
Erasing : perl-Git-1.8.3.1-23.el7_8.noarch 2/3
Erasing : git-1.8.3.1-23.el7_8.x86_64 3/3
Verifying : git-1.8.3.1-23.el7_8.x86_64 1/3
Verifying : perl-Git-1.8.3.1-23.el7_8.noarch 2/3
Verifying : gettext-devel-0.19.8.1-3.el7.x86_64 3/3
Removed:
git.x86_64 0:1.8.3.1-23.el7_8
Dependency Removed:
gettext-devel.x86_64 0:0.19.8.1-3.el7 perl-Git.noarch 0:1.8.3.1-23.el7_8
Complete!
- Install related dependencies
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
yum install gcc-c++ perl-ExtUtils-MakeMaker
[root@VM-8-16-centos ~]# yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package libcurl-devel-7.29.0-59.el7_9.1.x86_64 already installed and latest version
Package expat-devel-2.1.0-15.el7_9.x86_64 already installed and latest version
Package 1:openssl-devel-1.0.2k-25.el7_9.x86_64 already installed and latest version
Package zlib-devel-1.2.7-20.el7_9.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gettext-devel.x86_64 0:0.19.8.1-3.el7 will be installed
--> Processing Dependency: git for package: gettext-devel-0.19.8.1-3.el7.x86_64
--> Running transaction check
---> Package git.x86_64 0:1.8.3.1-23.el7_8 will be installed
--> Processing Dependency: perl-Git = 1.8.3.1-23.el7_8 for package: git-1.8.3.1-23.el7_8.x86_64
--> Processing Dependency: perl(Git) for package: git-1.8.3.1-23.el7_8.x86_64
--> Running transaction check
---> Package perl-Git.noarch 0:1.8.3.1-23.el7_8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================
Package Arch Version Repository Size
=====================================================================================
Installing:
gettext-devel x86_64 0.19.8.1-3.el7 base 320 k
Installing for dependencies:
git x86_64 1.8.3.1-23.el7_8 base 4.4 M
perl-Git noarch 1.8.3.1-23.el7_8 base 56 k
Transaction Summary
=====================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 4.8 M
Installed size: 24 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): gettext-devel-0.19.8.1-3.el7.x86_64.rpm | 320 kB 00:00:00
(2/3): perl-Git-1.8.3.1-23.el7_8.noarch.rpm | 56 kB 00:00:00
(3/3): git-1.8.3.1-23.el7_8.x86_64.rpm | 4.4 MB 00:00:00
-------------------------------------------------------------------------------------
Total 23 MB/s | 4.8 MB 00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : perl-Git-1.8.3.1-23.el7_8.noarch 1/3
Installing : git-1.8.3.1-23.el7_8.x86_64 2/3
Installing : gettext-devel-0.19.8.1-3.el7.x86_64 3/3
Verifying : git-1.8.3.1-23.el7_8.x86_64 1/3
Verifying : perl-Git-1.8.3.1-23.el7_8.noarch 2/3
Verifying : gettext-devel-0.19.8.1-3.el7.x86_64 3/3
Installed:
gettext-devel.x86_64 0:0.19.8.1-3.el7
Dependency Installed:
git.x86_64 0:1.8.3.1-23.el7_8 perl-Git.noarch 0:1.8.3.1-23.el7_8
Complete!
[root@VM-8-16-centos ~]# yum install gcc-c++ perl-ExtUtils-MakeMaker
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package gcc-c++-4.8.5-44.el7.x86_64 already installed and latest version
Package perl-ExtUtils-MakeMaker-6.68-3.el7.noarch already installed and latest version
Nothing to do
- Download the git source package
wget http://mirrors.edge.kernel.org/pub/software/scm/git/git-2.39.0.tar.gz
[root@iZ2ze288p6zj6hl324qs5hZ ~]# wget http://mirrors.edge.kernel.org/pub/software/scm/git/git-2.39.0.tar.gz
--2023-02-23 17:58:23-- http://mirrors.edge.kernel.org/pub/software/scm/git/git-2.39.0.tar.gz
Resolving mirrors.edge.kernel.org (mirrors.edge.kernel.org)... 147.75.80.249, 2604:1380:4601:e00::3
Connecting to mirrors.edge.kernel.org (mirrors.edge.kernel.org)|147.75.80.249|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10562099 (10M) [application/x-gzip]
Saving to: ‘git-2.39.0.tar.gz’
100%[=========================================================================================================>] 10,562,099 623KB/s in 11s
2023-02-23 17:58:35 (948 KB/s) - ‘git-2.39.0.tar.gz’ saved [10562099/10562099]
- Unzip the git archive
tar -zxvf git-2.39.0.tar.gz
[root@VM-8-16-centos ~]# ll
total 10364
drwxrwxr-x 27 root root 20480 Dec 12 09:07 git-2.39.0
-rw-r--r-- 1 root root 10562099 Dec 12 21:16 git-2.39.0.tar.gz
- install git
(1) cd git-2.39.0
(2) ./configure
(3) make && make install
- Check and verify the git version
git --version
[root@VM-8-16-centos git-2.39.0]# git version
git version 2.39.0
Note: yum of centos7 only provides 1.8.3.1 software package for git. If you want to install the latest version of git, please install it with the source code package.
(6), install Chromium
yum -y install chromium
Installed:
chromium.x86_64 0:110.0.5481.77-1.el7
Dependency Installed:
adwaita-cursor-theme.noarch 0:3.28.0-1.el7 adwaita-icon-theme.noarch 0:3.28.0-1.el7 at-spi2-atk.x86_64 0:2.26.2-1.el7
at-spi2-core.x86_64 0:2.28.0-1.el7 atk.x86_64 0:2.28.1-2.el7 audit-libs-python.x86_64 0:2.8.5-4.el7
avahi.x86_64 0:0.6.31-20.el7 cairo-gobject.x86_64 0:1.15.12-4.el7 checkpolicy.x86_64 0:2.5-8.el7
chromium-common.x86_64 0:110.0.5481.77-1.el7 colord-libs.x86_64 0:1.3.4-2.el7 dconf.x86_64 0:0.28.0-4.el7
flac-libs.x86_64 0:1.3.0-5.el7_1 fribidi.x86_64 0:1.0.2-1.el7_7.1 gdk-pixbuf2.x86_64 0:2.36.12-3.el7
glib-networking.x86_64 0:2.56.1-1.el7 gnutls.x86_64 0:3.3.29-9.el7_6 graphite2.x86_64 0:1.3.10-1.el7_3
gsettings-desktop-schemas.x86_64 0:3.28.0-3.el7 gsm.x86_64 0:1.0.13-11.el7 gstreamer1.x86_64 0:1.10.4-2.el7
gtk-update-icon-cache.x86_64 0:3.22.30-8.el7_9 gtk3.x86_64 0:3.22.30-8.el7_9 harfbuzz.x86_64 0:1.7.5-2.el7
hicolor-icon-theme.noarch 0:0.12-7.el7 jasper-libs.x86_64 0:1.900.1-33.el7 jbigkit-libs.x86_64 0:2.0-11.el7
json-glib.x86_64 0:1.4.2-2.el7 lcms2.x86_64 0:2.6-3.el7 libXcomposite.x86_64 0:0.4.4-4.1.el7
libXcursor.x86_64 0:1.1.15-1.el7 libXi.x86_64 0:1.7.9-1.el7 libXinerama.x86_64 0:1.1.3-2.1.el7
libXrandr.x86_64 0:1.5.1-2.el7 libXtst.x86_64 0:1.2.3-1.el7 libasyncns.x86_64 0:0.8-7.el7
libatomic.x86_64 0:4.8.5-44.el7 libbrotli.x86_64 0:1.0.9-10.el7 libcanberra.x86_64 0:0.30-9.el7
libcanberra-gtk3.x86_64 0:0.30-9.el7 libcgroup.x86_64 0:0.41-21.el7 libepoxy.x86_64 0:1.5.2-1.el7
libgusb.x86_64 0:0.2.9-1.el7 libmodman.x86_64 0:2.0.1-8.el7 libogg.x86_64 2:1.3.0-7.el7
libproxy.x86_64 0:0.4.11-11.el7 libsemanage-python.x86_64 0:2.5-14.el7 libsndfile.x86_64 0:1.0.25-12.el7_9.1
libsoup.x86_64 0:2.62.2-2.el7 libtdb.x86_64 0:1.3.18-1.el7 libthai.x86_64 0:0.1.14-9.el7
libtiff.x86_64 0:4.0.3-35.el7 libusbx.x86_64 0:1.0.21-1.el7 libvorbis.x86_64 1:1.3.3-8.el7.1
libwayland-cursor.x86_64 0:1.15.0-1.el7 libwayland-egl.x86_64 0:1.15.0-1.el7 libxkbcommon.x86_64 0:0.7.1-3.el7
nettle.x86_64 0:2.7.1-9.el7_9 nss-mdns.x86_64 0:0.14.1-9.el7 pango.x86_64 0:1.42.4-4.el7_7
policycoreutils-python.x86_64 0:2.5-34.el7 pulseaudio-libs.x86_64 0:10.0-6.el7_9 python-IPy.noarch 0:0.75-6.el7
rest.x86_64 0:0.8.1-2.el7 setools-libs.x86_64 0:3.3.8-4.el7 sound-theme-freedesktop.noarch 0:0.8-3.el7
trousers.x86_64 0:0.3.14-2.el7 xkeyboard-config.noarch 0:2.24-1.el7
Complete!
结尾出现代码这些表示安装成功
(7), install the Chinese package
yum groupinstall fonts -y
Installed:
cjkuni-uming-fonts.noarch 0:0.2.20080216.1-53.el7 dejavu-sans-mono-fonts.noarch 0:2.33-6.el7
dejavu-serif-fonts.noarch 0:2.33-6.el7 gnu-free-mono-fonts.noarch 0:20120503-8.el7
gnu-free-sans-fonts.noarch 0:20120503-8.el7 gnu-free-serif-fonts.noarch 0:20120503-8.el7
google-crosextra-caladea-fonts.noarch 0:1.002-0.4.20130214.el7 google-crosextra-carlito-fonts.noarch 0:1.103-0.2.20130920.el7
google-noto-emoji-fonts.noarch 0:20180508-4.el7 jomolhari-fonts.noarch 0:0.003-17.el7
khmeros-base-fonts.noarch 0:5.0-17.el7 liberation-mono-fonts.noarch 1:1.07.2-16.el7
liberation-sans-fonts.noarch 1:1.07.2-16.el7 liberation-serif-fonts.noarch 1:1.07.2-16.el7
lklug-fonts.noarch 0:0.6-10.20090803cvs.el7 lohit-assamese-fonts.noarch 0:2.5.3-2.el7
lohit-bengali-fonts.noarch 0:2.5.3-4.el7 lohit-devanagari-fonts.noarch 0:2.5.3-4.el7
lohit-gujarati-fonts.noarch 0:2.5.3-2.el7 lohit-kannada-fonts.noarch 0:2.5.3-3.el7
lohit-malayalam-fonts.noarch 0:2.5.3-2.el7 lohit-marathi-fonts.noarch 0:2.5.3-2.el7
lohit-nepali-fonts.noarch 0:2.5.3-2.el7 lohit-oriya-fonts.noarch 0:2.5.4.1-3.el7
lohit-punjabi-fonts.noarch 0:2.5.3-2.el7 lohit-tamil-fonts.noarch 0:2.5.3-2.el7
lohit-telugu-fonts.noarch 0:2.5.3-3.el7 madan-fonts.noarch 0:2.000-11.el7
nhn-nanum-gothic-fonts.noarch 0:3.020-9.el7 open-sans-fonts.noarch 0:1.10-1.el7
overpass-fonts.noarch 0:2.1-1.el7 paktype-naskh-basic-fonts.noarch 0:4.1-3.el7
paratype-pt-sans-fonts.noarch 0:20101909-3.el7 sil-abyssinica-fonts.noarch 0:1.200-6.el7
sil-nuosu-fonts.noarch 0:2.1.1-5.el7 sil-padauk-fonts.noarch 0:2.8-5.el7
smc-meera-fonts.noarch 0:6.0-7.el7 stix-fonts.noarch 0:1.1.0-5.el7
thai-scalable-waree-fonts.noarch 0:0.5.0-7.el7 ucs-miscfixed-fonts.noarch 0:0.3-11.el7
vlgothic-fonts.noarch 0:20130607-2.el7 wqy-microhei-fonts.noarch 0:0.2.0-0.12.beta.el7
wqy-zenhei-fonts.noarch 0:0.9.46-11.el7
Dependency Installed:
gnu-free-fonts-common.noarch 0:20120503-8.el7 khmeros-fonts-common.noarch 0:5.0-17.el7 liberation-fonts-common.noarch 1:1.07.2-16.el7
nhn-nanum-fonts-common.noarch 0:3.020-9.el7 smc-fonts-common.noarch 0:6.0-7.el7 thai-scalable-fonts-common.noarch 0:0.5.0-7.el7
Complete!
结尾出现代码这些表示安装成功
4. Deploy Yunzai-Bot
(1) Clone the Yunzai-Bot project
git clone --depth=1 -b main https://gitee.com/Le-niao/Yunzai-Bot.git
[root@VM-8-16-centos ~]# git clone --depth=1 -b main https://gitee.com/Le-niao/Yunzai-Bot.git
Cloning into 'Yunzai-Bot'...
remote: Enumerating objects: 1082, done.
remote: Counting objects: 100% (1082/1082), done.
remote: Compressing objects: 100% (1060/1060), done.
remote: Total 1082 (delta 22), reused 923 (delta 4), pack-reused 0
Receiving objects: 100% (1082/1082), 27.98 MiB | 2.74 MiB/s, done.
Resolving deltas: 100% (22/22), done.
(2), install pnpm
进入Yunzai-Bot路径下
cd Yunzai-Bot
全局安装
npm install pnpm -g
加入pnpm软连接(提示-bash: pnpm: command not found)
ln -s /www/server/nodejs/v16.19.1/bin/pnpm /usr/bin
查看pnpm版本
pnpm -v
[root@VM-8-16-centos ~]# pnpm -v
7.27.1
(3), set source installation dependencies
设置源
pnpm config set puppeteer_download_host=https://npmmirror.com/mirrors
安装依赖
pnpm install -P
[root@VM-8-16-centos ~ Yunzai-Bot]# pnpm config set puppeteer_download_host=https://npmmirror.com/mirrors
[root@VM-8-16-centos ~ Yunzai-Bot]# pnpm install -P
WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
Packages: +362
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Packages are hard linked from the content-addressable store to the virtual store.
Content-addressable store is at: /root/.local/share/pnpm/store/v3
Virtual store is at: node_modules/.pnpm
Progress: resolved 498, reused 0, downloaded 497, added 362, done
node_modules/.pnpm/puppeteer@13.7.0/node_modules/puppeteer: Running install script, done in 16.1s
dependencies:
+ art-template 4.13.2
+ chalk 5.0.1
+ chokidar 3.5.3
+ https-proxy-agent 5.0.1
+ inquirer 8.2.4
+ lodash 4.17.21
+ log4js 6.5.2
+ md5 2.3.0
+ moment 2.29.3
+ node-fetch 3.2.6
+ node-schedule 2.1.0
+ node-xlsx 0.21.0
+ oicq 2.3.1
+ patch-package 6.5.0
+ pm2 5.2.0
+ puppeteer 13.7.0
+ redis 4.1.0
+ yaml 2.1.1
devDependencies: skipped
Done in 28.3s
(4), start Yuncui
进入Yunzai-Bot路径下
cd Yunzai-Bot
运行Yunzai-Bot(首次运行按提示输入登录)
node app
[root@VM-8-16-centos ~ Yunzai-Bot]# node app
欢迎使用Yunzai-Bot v3.0.0
请按提示输入完成QQ配置
? 请输入机器人QQ号(请用小号): 这里输入一个小号来作为机器人
? 请输入登录密码(为空则扫码登录): [hidden]这里输入小号的密码,服务搭建需要密码,虚拟机局域网搭建则可以扫码登录
? 请选择登录端口: 安卓手表 这里选择安卓手表
? 请输入主人QQ号: 这里输入一个主QQ号,用来管理机器人
QQ配置完成,正在登录
后续修改账号可以运行命令: npm run login
[YzBot][22:36:10.570][MARK] Yunzai-Bot 启动中...
[YzBot][22:36:10.571][MARK] 连接redis....
[YzBot][22:36:10.579][MARK] 连接redis成功
[YzBot][22:36:10.590][MARK] 创建了新的设备文件:/root/Yunzai-Bot/data/xxxxxxxxxx/device-xxxxxxxxxx.json
[YzBot][22:36:10.590][MARK] ----------
[YzBot][22:36:10.590][MARK] Package Version: oicq@2.3.1 (Released on 2022/6/21)
[YzBot][22:36:10.590][MARK] View Changelogs:https://github.com/takayama-lily/oicq/releases
[YzBot][22:36:10.590][MARK] ----------
[YzBot][22:36:10.759][MARK] xxx.xxxx.xx:xxxx connected
[YzBot][22:36:11.066][MARK] Welcome, QQ ! 正在加载资源...
[YzBot][22:36:11.377][MARK] 加载了2个好友,0个群,0个陌生人
[YzBot][22:36:11.378][MARK] ----^_^----
[YzBot][22:36:11.378][MARK] Yunzai-Bot 上线成功 版本v3.0.0
[YzBot][22:36:11.378][MARK] https://github.com/Le-niao/Yunzai-Bot
[YzBot][22:36:11.382][INFO] 加载插件中..
[YzBot][22:36:11.537][INFO] 加载定时任务[2个]
[YzBot][22:36:11.537][INFO] 加载插件完成[14个]
[YzBot][22:36:11.538][INFO] -----------
[YzBot][22:36:12.541][MARK] 发送好友消息[QQ](xxxxxxxxxx)
[YzBot][22:36:12.628][INFO] succeed to send: [Private(xxxxxxxxxx)] 欢迎使用【Yunzai-Bot v3.0.0】
【#帮助】查看指令说明
【#状态】查看运行状态
【#日志】查看运行日志
【#更新】拉取github更新
【#全部更新】更新全部插件
【#更新日志】查看更新日志
【#重启】重新启动
【#配置ck】配置公共查询cookie
部署成功
(5) Basic operations
启动云崽: node app
查看日志: pnpm run log
后台运行: pnpm start
停止后台运行命令:pnpm stop
重启云崽:对着机器人发送 #重启
关闭云崽: 对着机器人发送 #关机,或者在关掉云崽运行窗口
功能列表: #帮助,#插件名称+帮助
更新云崽: #全部更新,#强制更新,#更新,git pull
重置云崽的部分设置(QQ 号,主人 QQ 等): pnpm run logi
(6), Yunzai-Bot directory description
Table of contents | illustrate |
---|---|
config\config\qq.yaml | You can modify the login method, QQ number |
config\config\redis.yaml | Redis settings (do not modify unless necessary) |
config\config\other.yaml | You can modify the owner QQ |
data\face | Store the location of added emoticons |
data\MysCookie | Where to store cookies |
logs\ | Where to store log files |
Yunzai-Bot\plugins\example | Where to store js plugins |
Yunzai-Bot\plugins | The location where large plugins are stored, such as the Meow plugin |
5. Plug-in installation
说明:这里就安装一个锅巴插件为例,其它插件安装就自行研究。https://gitee.com/yhArcadia/Yunzai-Bot-plugins-index?_from=gitee_search
(1), guoba plug-in (guoba-plugin)
Step 1: Download the plug-in and enter the Yunzai-Bot path
cd Yunzai-Bot
Step 2: Clone the crispy rice plug-in project
git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
[root@VM-8-16-centos plugins]# git clone --depth=1 https://gitee.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin/
Cloning into './plugins/Guoba-Plugin'...
remote: Enumerating objects: 395, done.
remote: Counting objects: 100% (395/395), done.
remote: Compressing objects: 100% (372/372), done.
remote: Total 395 (delta 9), reused 247 (delta 6), pack-reused 0
Receiving objects: 100% (395/395), 5.87 MiB | 916.00 KiB/s, done.
Resolving deltas: 100% (9/9), done.
Step 3: Install dependencies
pnpm install --filter=guoba-plugin
[root@VM-8-16-centos plugins]# pnpm install --filter=guoba-plugin
plugins/plugins/Guoba-Plugin | WARN deprecated multer@1.4.4
. | WARN deprecated uuid@3.4.0
. | +174 +++++++++++++++++
Progress: resolved 537, reused 497, downloaded 39, added 174, done
Done in 3s
Step 4: Port number: 50831 (crust port) needs to be configured securely on the Tencent Cloud Firewall and the Pagoda panel
Step 5: Restart Yunzi and load the plugin
对着机器人发送 #重启 或者 node app
Step 6: Log in to the backstage of rice cracker
对着机器人发送 #锅巴登录,复制回复的链接进行登录
Six, FAQ solution
(1) Encountered login verification problems
两种方式都可以,这里以手动获取ticket方式验证为例
手动获取ticket
app获取验证
Yunzai-Bot Manually Obtain Ticket Tutorial Click to Jump
(2) The current QQ version is too low, please upgrade to the latest version before logging in
[root@iZ2ze288p6zj6hl324qs5hZ Yunzai-Bot]# node app
[YzBot][16:19:14.772][MARK] Yunzai-Bot 启动中...
[YzBot][16:19:14.774][MARK] 连接redis....
[YzBot][16:19:14.785][MARK] 连接redis成功
[YzBot][16:19:14.795][MARK] ----------
[YzBot][16:19:14.795][MARK] Package Version: oicq@2.3.1 (Released on 2022/6/21)
[YzBot][16:19:14.795][MARK] View Changelogs:https://github.com/takayama-lily/oicq/releases
[YzBot][16:19:14.795][MARK] ----------
[YzBot][16:19:14.942][MARK] 120.241.150.69:8080 connected
[YzBot][16:19:15.155][ERRO] [温馨提示]当前QQ版本过低,请升级至最新版本后再登录。点击进入下载页面
[YzBot][16:19:15.155][ERRO] 登录错误,已停止运行
Solution:
Go to Yunzai-Bot\data\your own QQ trumpet path (robot QQ), and modify the json configuration file.
cd Yunzai-Bot/data/自己的QQ小号
修改配置,保存退出。
vi device-自己的QQ小号.json
说明:
i:按i进入编辑模式,进行编辑。
ESC:按ESC退出编辑模式,按:wq保存退出。
回到Yunzai-Bot路径,启动云崽。
cd Yunzai-Bot
node app
(3) The failure to start the rice cake lacks a dependency: body-parse
[YzBot][16:48:34.700][MARK] Welcome, QQ ! 正在加载资源...
[YzBot][16:48:35.136][MARK] 加载了2个好友,0个群,0个陌生人
[YzBot][16:48:35.137][MARK] ----^_^----
[YzBot][16:48:35.138][MARK] Yunzai-Bot 上线成功 版本v3.0.0
[YzBot][16:48:35.138][MARK] https://github.com/Le-niao/Yunzai-Bot
[YzBot][16:48:35.142][INFO] 加载插件中..
[YzBot][16:48:35.203][MARK] ---- 锅巴启动失败 ----
[YzBot][16:48:35.204][MARK] 缺少依赖:body-parser
[YzBot][16:48:35.204][MARK] 请执行安装依赖命令:pnpm add body-parser -w
[YzBot][16:48:35.204][MARK] ---------------------
[YzBot][16:48:35.204][ERRO] TypeError: Cannot read properties of undefined (reading 'includes')
at PluginsLoader.load (file:///root/Yunzai-Bot/lib/plugins/loader.js:75:25)
at async onlineEvent.execute (file:///root/Yunzai-Bot/lib/events/online.js:23:5)
Solution:
安装依赖
pnpm install --filter=guoba-plugin
启动云崽
node app