Display your current Last.FM song on Discord using the RPC API:
- NodeJS >=8
- npm (>=5)
- Discord
- Clone the repo
git clone https://github.com/69/fmcord.git - Install the modules
npm i - Open Discord
- Set your last.fm username in the
keys.jsonfile - Start the RPC app
node app.js
- Go to Discord settings
- Go to "Games"
- Make sure "Display currently running game as a status message" is ticked
- Make sure your node is updated, you need at LEAST version 8.0.0!
- Install pm2
npm i pm2 -g - Start the app
pm2 start app.js --name="fmcord" - Use
pm2 log fmcordto view the logs - Restart the app using
pm2 restart fmcord
