mkwii-rpc
v1.2.3
Published
a Discord Rich Presence (RPC) app that shows your Mario Kart Wii on Wiimmfi status. eventually will be customizable. deps: chalk, discord-rpc, puppeteer.
Maintainers
Readme
MKWii Discord RPC
heavily inspired by dotcomboom's rich presence utility
initial RPC script scaffolding from https://github.com/ThunderDoesDev/Custom-RPC
planned features:
[x] better logs
[ ] optional
mkw-anaenhancements (ENSURE PLATFORM INDIFFERENCE) i.e. showing your Mii, smaller ratelimit maybe idk I think discord rpc is still ratelimited at 0.2Hz[ ] GUI
[ ] custom layouts (see
states.json)
how this works
therefore this script doesn't abuse the service.
this script does the following:
- open
wiimmfi.de/stats/mkw/room/p{pid}[^scraper] and parse room and player details into a (configurable?) discord rich presence[^rpc] - if you configure
mkw-ana, use that to glean extra useful and configurable details
[^scraper]: npm/puppeteer — yeah I know it uses chrome, deal with it
. also you're clearly using discord so uhh
[^rpc]: npm/discord-rpc
how to use
- install nodejs if you haven't already
- go to https://nodejs.org/en/download and download the prebuilt release for your OS.
- clone the repo
git clone https://codeberg.org/RuralAnemone/mkwii-rpc
cd mkwii-rpc- install deps
npm i- configure environment variables
- copy
.env.exampleto.envand fill out the values.- see the file comments if you need help
cp .env.example .env && $EDITOR .env- run index.mjs
node index.mjsor just run the start script if you have muscle memory
npm startusing your own client
- set
CLIENT_IDin.env - download
assets/export.tar.gz. upload everything into ( Discord Developers > Rich Presence > Art Assets ) — you may get ratelimited, so try uploading a couple files at a time - set your imgur api key wherever once I implement miis in mkw-ana
