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
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
- Make sure that you have Heroku app added as a git remote
git push heroku
- Test that bot responds, send "Hello bot" to channel
- Create bot https://core.telegram.org/bots
- Get access token
- Create a new app https://developer.spotify.com/my-applications/#!/applications
- Follow these examples to get client id, client secret and an initial refresh token.
- Obtain a Youtube API v3 token https://developers.google.com/youtube/v3/getting-started
- 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