Download the zip, extract to a directory then open CMD in that directory and run npm i and let npm install the packages.
Sadly some libs haven't been updated in a while to apply some fixes so you will need to edit 2 files in order for this to work.
Edit the /lib/ps.js so line 11 has a maxBuffer. Here is the new line 11 exec('wmic process list /format:csv', {maxBuffer: 2000*1024}, function (err, stdout, stderr) {
You need to edit 2 lines here, line 15 the DEFAULT_PORT var, change the value to 4381. Next go to line 158 and change the https://%s:%d%s to http://%s:%d%s
With them 2 files edited you should be good to go.
Run npm start in console after the setup steps and boom! Rich Presence with your Spotify!
By default the time option is song-time which will display the elapsed time as the current song time.
Available options
| Option | Description |
|---|---|
overall |
This will set the elapsed time to the current track position. Thanks to @mcao for PRing this. |
song-time |
Show file differences that haven't been staged |
none |
Remove the elapsed time and just show the "Playing {track}\nBy {artist}" |
Just go to the config.json and change the "time" to any of these. Example:
{
"time": "none"
}