by cedricbousmanne



Our team loves Slack as a messaging and collaboration platform. We also love music and sharing our unique interests with the rest of the team. We had been posting individual songs into a channel for everyone to listen to, but found it much easier to work from a shared Spotify playlist to share, catalog, and replay our favorite tracks.

This app manages the retrieval of new playlist tracks and automates the process of posting them in a formatted way to a desired Slack channel.


Slack Webhook Integration

The first step is to configure an incoming webhook integration for your desired channel, described here:

Spotify Client ID & Secret

The next step is to get a Spotify Client ID & Secret by creating an application, described here:

Running Redis Instance

This application assumes you have a running Redis instance accessible in a standard URI format (e.g. redis://user:password@host:port/). There are a number of services which will provide low cost (or even free) instances, like Redis To Go.

Shared Spotify Playlist

This is really the driver for this whole application. Here's a good walkthrough of what you need to do to set this up:

Environment Variables

This app is configured to expect the following environment variables to be set prior to execution:

#Owner of the shared playlist. Used for retrieval of playlist data.

#Spotify ID of the shared playlist. Used for retrieval of playlist data.

#Spotify Client ID. Used for authentication purposes.

#Spotify Client Secret. Used for authentication purposes.

#Slack Webhook URL. Used for posting new tracks into a channel.

#URI of your Redis instance (e.g. redis://user:password@host:port/)

Optionally, the following can be set for further customization:

#Optional Slack channel to override the webhook integration (e.g. #test-integrations)


MIT. Copyright © 2015 Brad Fogle

Deploy to Heroku