"Triumph" Linux command line deployment QQ robot mirai

Pitching/feedback/suggestions: My salted fish heart    Aigeng - @ wdssmq

Try new QQ robot framework again

「AD: DesiVPS - 6 free IP changes per year

Attempts when unable to sign in

2023-03-23:

 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

· To install Mirai Console Loader:

 #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

· Startup and login:

 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

· plug-in unit:

Install http api plug-ins to communicate with other programs.

 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

· verification:

As for sliding verification, I failed several times when I logged in, and then directly triggered a scanning code to verify that it passed. Let's record the relevant things;

Corresponding items: KasukuSakura/mirai-login-solver-sakura

Download the jar to the plug-in directory:

 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

Download the apk and install it on your phone: apk-release.apk

The plug-in will give a proxy address when logging in, http://<ip>:<port>/request/request/60894314

The port number and path will change. Pay attention to setting firewall pass;

Fill the website into the mobile phone application for verification, and after passing the verification, mcl will automatically continue, although you can take a chance

Background operation

 #Start nohup sh mcl & #View background processes ps -ef | grep mcl

other

The official plug-in doesn't seem to work?

 # ./ 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

mirai/ConsoleTerminal.md at dev · mamoe/mirai
https://github.com/mamoe/mirai/blob/dev/docs/ConsoleTerminal.md

ITXTech/mcl installer: MCL one click installation tool
https://github.com/iTXTech/mcl-installer

mirai-console-loader/cli.md at master · iTXTech/mirai-console-loader
https://github.com/iTXTech/mirai-console-loader/blob/master/cli.md

Yuueexxinngg/onebot kotlin: Kotlin implementation of OneBot standard and mirai plug-in - original cqhttp mirai
https://github.com/yyuueexxiinngg/onebot-kotlin

Temporary processing scheme that cannot be logged in | MiraiForum
https://mirai.mamoe.net/topic/223/%E6%97%A0%E6%B3%95%E7%99%BB%E5%BD%95%E7%9A%84%E4%B8%B4%E6%97%B6%E5%A4%84%E7%90%86%E6%96%B9%E6%A1%88?lang=zh -CN


 Love generating electricity

Title:《 "Triumph" Linux command line deployment QQ robot mirai 》Author: Ice sinking and floating water
Original link: https://www.wdssmq.com/post/20141117777.html
Unless otherwise specified, it is original. Please specify if it is reproduced.

Share to WeChat

Scan QR code

You can view or share with your friends on WeChat.

Related articles

You are also working on mirai. I have a group. Do you need to contact me if you want reply
Comment:

◎ Welcome to participate in the discussion. Please express your views and exchange your views here.

Site classification

search

Old articles of this week

Wdssmq/blog astro: a static blog based on Astro;

Essentially, when faced with a code problem, we need another person who is willing to invest energy in your problem and has the corresponding technical knowledge..

Next, it seems that the replacement of Resilio Sync with Synything is also a slightly larger project.. Orz

GoodSync gave away a one-year license last year, and then it actually used it; I was thinking about changing Synything when it was due, but the last few days I gave a reminder that I spent ¥ 381 to renew Orz for three years. There are still some differences between their positioning and posture.. Earlier, Resilio Sync and BCompare were used, but the former occupied too much memory, and the latter was not automatically synchronized..

2024, let's back up the Duet archive..

... An unknown niche style library+inline style hybrid writing is indeed a bit groovy, but it is absolutely positive that "learning has begun" and can continue..

After reading a lot of questions in the post bar, there is an illusion that many people have registered a post bar specifically to ask a question, and the question itself may or may not be answered effectively (related to the point of question and the specific posture). However, in any case, after that, there will be no more than after cancelling the account, as if you never have to learn the corresponding things..

Devil Doll

-They are studying whether you are a real adult or a child pretending to be an adult

-I've studied it for a long time myself

In Lego DC, (basically the Batman family, the youngest one will become the same no matter who feels the design --

So, just like Sister Xianglin, I need to "sign in" my emotional feelings every day, but there is no need for me to sign in like this

Powergeneration supporter

Latest comments

Friendly Links

  •  Subscribe to RSS 2.0 news aggregation on this site
Call Eastwar