Warning: Any disadvantages, account sanctions, or other consequences resulting from use of this project are solely the user's responsibility.
This project automates daily logins to Majsoul to achieve the attendance achievement (8bit Riichi BGM) and collect the daily Fortune Charm using GitHub Actions.
- Open Majsoul in your browser.
- Press
F12and switch to theConsoletab. - Run the following code:
{ const r = await test_sdk.Login({ openQuickLogin: true }); if (r.code !== 0) throw new Error(`${r.code}: ${r.msg}`); console.log(`UID: ${r.data.LOGIN_UID}\nTOKEN: ${r.data.LOGIN_TOKEN}`); }
- Save the printed
UIDandTOKENvalues for JP/EN/KR server setup. Iftest_sdkis not defined yet, wait until the game finishes loading and try again. - For CN, use your account email and password instead. The script calculates the required password hash internally.
- Fork this repository on GitHub.
- In your fork, go to
Settings > Secrets and variables > Actions. - Click
New repository secretand addMS_SERVER. - Set
MS_SERVERto one ofjp,en,kr, orcn. If you do not set it, the default isjp. - If you use the
jp,en, orkrserver, clickNew repository secretagain and addUIDandTOKENwith the values you saved earlier. - If you use the
cnserver, clickNew repository secretagain and addEMAILandPASSWORDwith your account email and plaintext password. - Go to
Settings > Actions > Generaland changeWorkflow permissionstoRead and write permissions. - The default run time is 6:05 AM JST every day. To change it, edit the
cronvalue in.github/workflows/main.yml. - Open the
Actionstab and clickI understand my workflows, go ahead and enable themto enable workflows. - Select
Login to Majsoulfrom the left-sideWorkflowslist and clickEnable workflow.
- Stay logged in to Majsoul in your browser.
- In GitHub, go to
Actions > Workflowsand clickRun workflow. - If it works correctly, your browser session may be disconnected because of a duplicate login.
- GitHub Actions may be delayed by up to 30 minutes depending on GitHub server load.
- Be careful not to expose your
tokenanduidto others.

