A simple tool to intercept Riichi City's websocket message and translate it to MJAI message for Mahjong AI model.
Ask me anything about this at Discord
Report Bug
.
Request Feature
"The purpose of this project is to provide people with a convenient way to real-time understand their performance in Riichi City game matches and to learn and improve from it. This project is intended for educational purposes only, and the author is not responsible for any actions taken by users using this project. Riichi City officials may detect abnormal behavior, and any consequences such as account suspension are not related to the author."
- Python 3.10~3.12
- A
mortal.pth
. (Get one from Discord server if you don't have one.) - Proxifier or similar software to redirect Riichi City connection to MITM.
Get mortal.pth at Discord
- Go to #verify and click the ✅ reaction.
- Go to #bot-zip
- Download a bot you like.
- Extract the zip.
- And mortal.pth is there.
- Clone this repository
- cd in to the directory (
cd Riki
) - Create a virtual environment (
python -m venv venv
) - Activate the virtual environment (
.\venv\Scripts\Activate
) - Install the requirements (
pip install -r requirements.txt
) - Open mitmproxy if this is your first time using it.
- Close it.
- Go to your user home directory
~/.mitmproxy
- Install the certificate.
- Put
mortal.pth
into./Akagi/mjai/bot
- Setup Proxifier or similar software to redirect Riichi City connection to MITM.
- Clone this repository
- cd in to the directory (
cd Riki
) - Create a virtual environment (
python -m venv venv
) - Activate the virtual environment (
source venv/bin/activate
) - Install the requirements (
pip install -r requirements.txt
) - Open mitmproxy if this is your first time using it.
- Close it.
- Go to your user home directory
~/.mitmproxy
- Install the certificate.
- Put
mortal.pth
into./Akagi/mjai/bot
- Setup Proxifier or similar software to redirect Riichi City connection to MITM.
- cd into the directory (
cd Riki
) - Activate the virtual environment (
.\venv\Scripts\Activate
orsource venv/bin/activate
) - Run the script (
python mitm.py
) - Open Riichi City and play a game.
- Add GUI
“Commons Clause” License Condition v1.0
The Software is provided to you by the Licensor under the License, as defined below, subject to the following condition.
Without limiting other conditions in the License, the grant of rights under the License will not include, and the License does not grant to you, the right to Sell the Software.
For purposes of the foregoing, “Sell” means practicing any or all of the rights granted to you under the License to provide to third parties, for a fee or other consideration (including without limitation fees for hosting or consulting/ support services related to the Software), a product or service whose value derives, entirely or substantially, from the functionality of the Software. Any license notice or attribution required by the License must also include this Commons Clause License Condition notice.
Software: Riki
License: GNU Affero General Public License version 3 with Commons Clause
Licensor: shinkuan