This project automates daily logins to Majsoul to achieve the attendance achievement (8bit Riichi BGM) and collect the daily Fortune Charm using GitHub Actions.
This project is based on the mahjong_soul_api.
- Access Majsoul through a browser.
- Press
F12
to open developer mode. - Navigate to the
Network
tab and search forlogin
. - Check the payload of the xhr or fetch format login file that appears in the search results.
- Note down the required
token
anduid
values.
- Fork this project on GitHub.
- Navigate to
Settings > Secrets and variables > Actions
in your forked project. - Click
New repository secret
. - For
Name
, enterUID
, and forSecret
, enter theuid
value noted earlier, then clickAdd secret
. - Create another Repository secret with
Name
asTOKEN
andSecret
as thetoken
value noted earlier, then clickAdd secret
. - The default server location is set to the JP server. If you wish to switch to the EN server, modify the
MS_HOST
value inmain.py
tohttps://mahjongsoul.game.yo-star.com/
. - The default connection time is set to 6:05 AM KST daily. If you want to change this, modify the
cron
value in.github/workflows/main.yml
. - Go to the
Actions
tab at the top and click theI understand my workflows, go ahead and enable them
button to activate the workflows. - Navigate to the
Login to Majsoul
tab underWorkflows
on the left and clickEnable workflow
.
- Log in to Majsoul through a browser.
- Click
Run workflow
under theActions > Workflows
tab. - If it operates correctly, the browser session of Majsoul will be forcibly terminated due to double connection.
- GitHub Actions can be delayed by up to 30 minutes beyond the scheduled time due to server load on GitHub.
- Be cautious not to disclose your
token
anduid
to others.