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
- Copy
config.json.example
toconfig.json
- Set your last.fm username in the
config.json
file - 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 fmcord
to view the logs - Restart the app using
pm2 restart fmcord
- To stop it, run
pm2 stop fmcord