Skip to content

JonDerThan/spotify-playlist-log

Repository files navigation

Logs changes to a spotify playlist to a discord channel.

Installation

  1. Download this repository and unzip it.
  2. Install the dependencies by running npm install.
  3. Run node setup.js to create a config file.
  4. Fill in the missing fields. How to obtain certain keys is described below.
  5. Run node setup.js again. The tracks of the playlist will be saved.

Usage

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.

Obtaining the keys

Field How to obtain
playlistID Playlist ID
webhook Discord webhook
spotifyCreds Spotify credentials

Playlist ID

Copy the playlists URI (as described here), which should look like this: spotify:playlist:37i9dQZF1DXdipfKDeMPTE. The last part (37i9dQZF1DXdipfKDeMPTE) is the playlists id.

Discord webhook

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.

Spotify credentials

  1. Open this link.
  2. Log in.
  3. 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.
  4. Now you can copy & paste the apps id and its secret.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published