Logs changes to a spotify playlist to a discord channel.
- Download this repository and unzip it.
- Install the dependencies by running
npm install
. - Run
node setup.js
to create a config file. - Fill in the missing fields. How to obtain certain keys is described below.
- Run
node setup.js
again. The tracks of the playlist will be saved.
Run node index.js
to start the program.
The program will save the current state of the playlist every 30 minutes. If it observes any changes to the previously saved version it will log them to the discord channel.
The program is not required to run 24/7 but it is recommended to let the program run at least once per day to log every change. You could also let the program run in the daytime and stop it at night.
Note: If a track gets added and removed without the program updating the playlists state in between, the change will slip because the program won't observe any difference between the old state and the new state.
Field | How to obtain |
---|---|
playlistID | Playlist ID |
webhook | Discord webhook |
spotifyCreds | Spotify credentials |
Copy the playlists URI (as described here), which should look like this: spotify:playlist:37i9dQZF1DXdipfKDeMPTE
. The last part (37i9dQZF1DXdipfKDeMPTE
) is the playlists id.
Create a webhook as described here. Its URL should have the form https://discordapp.com/api/webhooks/{id}/{token}
. Now you can copy & paste the id and token. The webhooks name and icon can be changed later.
- Open this link.
- Log in.
- Click on "Create an app". Examples for name and description:
App name App description spotify-playlist-log Logs changes to a spotify playlist to a discord channel. - Now you can copy & paste the apps id and its secret.