The First Malody Stats Card for Youngsters
中文 | English
Warning
This project is entirely unofficial, non-profit, and open-source. If any infringement or violations are found in this project, please contact me. Thank you!
The Malody Stats Card offers a simple way to display a Malody user's game data card. You can directly embed it into your blog, website, or any other desired location.
Here are some examples of using the Malody Stats Card:
By using the hide
parameter, you can choose to hide certain modes. For instance, the link below hides modes 4, 5, 8, and 9.
To use the Malody Stats Card in your project, just embed the code snippet below into your Markdown or HTML file, replacing [UID]
with the user ID you wish to display. For guidance on obtaining the user's [UID]
, see How to Obtain User UID.
[![Malody Stats Card](https://malody-stat-card.bzpl.tech/card/default/[UID])](http://m.mugzone.net/accounts/user/[UID])
<a href="http://m.mugzone.net/accounts/user/[UID]">
<img src="https://malody-stat-card.bzpl.tech/card/default/[UID]" alt="Malody Stats Card">
</a>
The following parameters are currently supported:
hide
: Choose the modes to hide. For instance,hide=4,5
will hide the statistics for modes 4 and 5.
To set parameters, you can add a ?
to the end of the link, followed by the parameters. For example:
https://malody-stat-card.bzpl.tech/card/default/[UID]?hide=4,5
- Visit the official Malody community site: http://m.mugzone.net/index
- Click the login button in the top right corner to log into your account.
- Once logged in, click on your profile picture in the top right corner to enter your personal page.
- In the address bar of the personal page, you will see an address like
http://m.mugzone.net/accounts/user/xxxxx
. - The
xxxxx
is your UID.
Warning
When querying a user, it will simulate game login. To prevent affecting your gaming experience, it's recommended that you create a dedicated account for this purpose and not use your main account.
If you want to deploy the Malody Stats Card on your own server, you can use the following methods:
- Clone this repository to your server.
- Create a
.env
file in the project root directory with the following content:Here,uid= username= password=
uid
is your Malody user UID, andusername
andpassword
are your Malody username and password. - Run the command
docker-compose up -d
in the project root directory and wait for the deployment to finish. - Visit
http://localhost:3000/card/default/[UID]
, wherelocalhost
is your server address and[UID]
is your Malody user UID. - If you wish to change the port number, modify the
ports
parameter in thedocker-compose.yml
file. - Enjoy it!
- Clone this repository to your server.
- Create a
.env
file in the project root directory with the following content:Here,uid= username= password=
uid
is your Malody user UID, andusername
andpassword
are your Malody username and password. - Run the command
npm install
in the project root directory and wait for the dependencies to install. - Run the command
npm run start
in the project root directory. The project will run athttp://localhost:3000
. - Visit
http://localhost:3000/card/default/[UID]
, wherelocalhost
is your server address and[UID]
is your Malody user UID. - If you wish to change the port number, add a
PORT
parameter to the.env
file.
This project is licensed under the MIT License. More information can be found in the LICENSE file.