"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

  •  Subscribe to RSS 2.0 news aggregation on this site

search

Old articles of this week

"Ninja and Killer" - birth is a fact, on this basis, I feel better than "Deer Naizi"; One is not a human being (nor a deer), while the other is not a human being (nor a deer). The abstract deer is higher, but it is not beautiful..

None of the four ports of the Nuc can be recognized by the hard disk, and the light is on.. Finally, try not to stick it in the end..

Green Link's hard disk box.. The other Lenovo has no problem..

Recent movie records: Super Mario, Death Attendant and Wolverine..

The move has also come to an end. Although the moved things have to be put back, the new wardrobe has been separated for two months, but I still don't want to put clothes in it.

How about I summarize and sort it out once a year?? Broken rain collection_set ice and floating water _ Page 1

Therefore, without this message, only 13 beeps will be sent in 2024????

When the git operation in VSCode is stuck, it's always a pain point that you can't cancel it on your own initiative. Generally, it's push or pull. Today, even submission is stuck..

Another summer passed, so I didn't buy waterproof shoe covers this year; Then it was cold. I bought a sleeping bag in order to kick the quilt. I don't know if it would be slightly narrow at 1.2 meters..

Cleo at 5:00 to 7:00, added to the list in June 2018, and found it online at station B at the end of November 21. It was watched twice until the last few days.. The next five items are from 2019, all of which are movies - slightly longer to-do lists..

Useful programs automatically grab their own beeps with tags, and then delete them from the online after annual backup; I just found that last year's data was backed up but not deleted online?? Compared with the local data, there is still one online data, Why??

Latest comments

Friendly Links