/ppmusicbot

Telegram bot which adds all linked Spotify track links to a shared playlist

Primary LanguageJavaScriptMIT LicenseMIT

ppmusicbot

Telegram bot which adds all linked Spotify track links to a shared playlist.


![Demo](docs/demo.gif)

Features:

  • Add Spotify links to a playlist
  • Convert Youtube links to Spotify tracks and add them to a playlist

Get started

  • npm install
  • cp .env.sample .env
  • Fill in the blank variables to .env file. Don't commit .env to version control.
  • npm start
  • Hubot is now running locally on your machine

Release

  • Make sure that you have Heroku app added as a git remote
  • git push heroku
  • Test that bot responds, send "Hello bot" to channel

Setup a new bot

Telegram bot

Spotify Web API

Youtube API

Heroku

  • Create a new Heroku app, e.g. ppmusic
  • heroku ps:scale web=0 telegram=1 -a ppmusic Scale heroku dyno processes
  • Provision add-ons. Redis is required.
  • Setup needed environment variables, check .env.sample for reference.
  • Do a release

Authors