Attempts when unable to sign in
cd ~/node/mirai-mcl cd plugins # rm -rf fix-protocol-version-*.jar wget https://github.com/cssxsh/fix-protocol-version/releases/download/v1.3.0/fix-protocol-version-1.8.3.mirai2.jar #Restart cd ~/node/mirai-mcl ./mcl #If an error is reported: code=235, delete device.json and log in again #~/node/mirai mcl/dots/123444/device.json ← Path diagram
Installation and configuration
#Although mirai is a Java project mkdir -p ~/node/mirai-mcl cd ~/node/mirai-mcl #Download the installation script curl -LJO \ https://github.com/iTXTech/mcl-installer/releases/download/v1.0.7/mcl-installer-1.0.7-linux-amd64-musl #Installation chmod +x mcl-installer-1.0.7-linux-amd64-musl ./mcl-installer-1.0.7-linux-amd64-musl #Delete installation script rm mcl-installer-1.0.7-linux-amd64-musl
cd ~/node/mirai-mcl #Start ./mcl #There are basically various problems during the first startup. For example, if the error code=237 is reported, the "sliding verification" plug-in should be installed #Configure Automatic Login /autoLogin add <qq> <password> #Delete the QQ number of the sample in the configuration, or modify the configuration file directly # mirai-mcl/config/Console/AutoLogin.yml
cd ~/node/mirai-mcl cd plugins #Download plug-in wget https://github.com/yyuueexxiinngg/onebot-kotlin/releases/download/0.3.4/onebot-mirai-0.3.4-all.jar #Start generating plug-in configuration file again cd ~/node/mirai-mcl ./mcl #The configuration file is as follows, which should be modified after logging out # mirai-mcl/config/com.github.yyuueexxiinngg.onebot/settings.yml
cd ~/node/mirai-mcl cd plugins # rm -rf mirai-login-solver-sakura*.jar wget https://github.com/KasukuSakura/mirai-login-solver-sakura/releases/download/v0.0.10/mirai-login-solver-sakura-0.0.10.mirai2.jar
Background operation
#Start nohup sh mcl & #View background processes ps -ef | grep mcl
other
# ./ mcl --update-package net.mamoe:mirai-api-http --type plugin --channel stable-v2 # ./ mcl --update-package net.mamoe:mirai-login-solver-selenium --channel nightly --type plugin
link