The idea of repository based on https://github.com/chaserhkj/PyMajSoul/
Python wrappers for Majsoul allow you to interact with their servers from Python scripts.
Before you start, you should
- know the exact key for password encryption
- keep in mind not to share or post it to public
- It is a severe security issue.
- Install
poetry
- Install python packages from by running
poetry install
- copy
examples/majsoul_bot.ini.example
into the root directory. Rename tomajsoul_bot.ini
. Edit the file with your own information. poetry run python main.py
- You can use your own config by adding
-c
or--config
flag. likepoetry run python main.py -c /path/to/your/config
. Anyway, the file must be inini
format.
This example is working only with Python3.7+.
Also, you need to have an account from CN server to run this example, because only accounts from CN server has the ability to login with login and password.
If you want to login to EN or JP servers you need to write your code to authenticate via email code or social network. Protobuf wrapper from this repository contains all needed API objects for that.
- Code behind https://amae-koromo.sapk.ch/: SAPikachu/amae-koromo-scripts
- Api and protocol reference in Chinese: takayama-lily/mjsoul
- Install
poetry
using package manager - Install python packages from by running
poetry install
- Install protobuf compiler
protoc
It was tested on Ubuntu.
- At the root directory
chmod +x ./setup.sh
./setup.sh
- Prepare new
liqi_admin.json
file from MS tournament manager panel python ms_tournament/generate_proto_file.py
protoc --python_out=. protocol_admin.proto
chmod +x ms-admin-plugin.py
sudo cp ms-admin-plugin.py /usr/bin/ms-admin-plugin.py
protoc --custom_out=. --plugin=protoc-gen-custom=ms-admin-plugin.py ./protocol_admin.proto