JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q19070F
  • License MIT

A service for collaborating on Spotify playlists through slack

Package Exports

  • spottybot

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (spottybot) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

SpottyBot

Collaborate on a weekly playlist with friends

What does it do?

SpottyBot monitors a slack channel shared Spotify links and adds them to a specified playlist. If successfully added, it will respond to messages including a Spotify link letting users know their track was added.

Commands

@SpottyBot playlist

Mentioning SpottyBot with the word playlist will post a link to the shared playlist

@SpottyBot help

Mentioning SpottyBot with the word help will let the users know how it works!

Use

Install Binary from NPM

npm i -g spottybot
spottybot PATH/TO/SPOTTYBOTCONFIG.json

From Source

git clone https://github.com/allancalix/spottybot.git && npm i
npm build && node dist/main.js

Configuring

Configuration file spottybot.json should exist in the project root directory.

{
  // Desired Port
  "port": 80,
  // Slack Token for authenticating SpottyBot
  "slack_token": "XXXXXXXXXX-XXXXXXXXXXXXXXX-XXXXXXXXXXXXXXX-XXXXXXXXXXx",
  // Location used for Spotify OAUTH
  "spotify_redirect_uri": "http://myhost/callback",
  // Spotify API client ID
  "spotify_client_id": "XXXXXXXXXXXXXXXXXXXXXXXX",
  // Spotify API client secret
  "spotify_client_secret": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
  // ID of Spotify playlist to share
  "playlist_id": "XXXXXXXXXXXXXXXXXXX",
  // Spotify account username
  "account_uname": "SpotifyUser"
}