0.0.3
spoticord Display your current Spotify song on Discord using the RPC API:
Dependencies
- NodeJS >=8
- npm (>=5) or Yarn (>=1.2)
- Discord Canary (preferred)
- Spotify >= 1.0
Setup
- Clone the repo
git clone https://github.com/nations/spoticord.git
- Install the modules
npm i
oryarn
- Open Discord & Spotify
- Start the RPC app
node app.js
Updating
- To update SpotiCord, enter the "spoticord" directory and run
git fetch
in your terminal.
Useful links
Troubleshooting
It says the song is being updated but it isn't being displayed on my profile?
- Go to Discord settings
- Go to "Games"
- Make sure "Display currently running game as a status message" is ticked
Invalid token function (or something similar)
- Make sure your node is updated, you need at LEAST version 8.0.0!
stdout maxBuffer exceeded
or some XML/CSV parse error
- This is due to an outdated library which tries to help with Windows support
- Go to node_modules, go to wintools, go to lib
- Open ps.js
- On line 11, replace the whole line with:
exec('wmic process list /format:csv', {maxBuffer: 2000*1024}, function (err, stdout, stderr) {
How to run in the background
- Install pm2
npm i pm2 -g
- Start the app
pm2 start app.js --name="spoticord"
- Use
pm2 log spoticord
to view the logs - Restart the app using
pm2 restart spoticord