telegram-playlist-bot Code
Detects changes on given users Spotify playlist then sends track link as a message to Telegram users
Brought to you by:
semyonic
File | Date | Author | Commit |
---|---|---|---|
bin | 2018-03-23 |
![]() |
[12d9d1] Init |
models | 2018-03-23 |
![]() |
[208d33] Fix: When playlist change found but no track av... |
routes | 2018-03-23 |
![]() |
[12d9d1] Init |
.babelrc | 2018-03-23 |
![]() |
[12d9d1] Init |
.env | 2018-03-23 |
![]() |
[4efd48] Update project description and sample .env file |
.gitignore | 2018-03-23 |
![]() |
[4efd48] Update project description and sample .env file |
LICENSE | 2018-03-23 |
![]() |
[2fb3a1] Create LICENSE |
README.md | 2018-03-23 |
![]() |
[1e9e1e] Update README.md |
app.js | 2018-03-23 |
![]() |
[208d33] Fix: When playlist change found but no track av... |
package-lock.json | 2018-05-16 |
![]() |
[ae562f] Bump request from 2.85.0 to 2.86.0 |
package.json | 2018-05-16 |
![]() |
[ae562f] Bump request from 2.85.0 to 2.86.0 |
It was a toy project to share playlist changes to my friends following playlists.
Detects changes on given users Spotify playlist then sends added tracks to the Telegram users via bot. (Spotify doesn't support such Events,WebHooks currently)
$ npm install
Then configure your *.env* file (Sample .env exists in this project)
You can change polling frequency in .env file
Name | Description |
---|---|
TELEGRAM_BOT_TOKEN |
Your bot access token |
TELEGRAM_ADMIN_ID |
Your Telegram ID (Stored in mongoDB after initializing chat with the bot) |
SPOTIFY_ID |
Your Spotify Application ID |
SPOTIFY_SECRET |
Your Spotify Application Secret |
SPOTIFY_ID_ME |
Your Spotify Profile info (You can obtain via share profile button in Spotify App) |
SPOTIFY_PLAYLIST_ID |
Your Spotify Playlist ID (You can obtain via share playlist button in Spotify App) |
SPOTIFY_POLLING |
Polling frequency in MiliSeconds to check playlist changes (*Be aware of Rate Limits !*) |
MONGO_URI |
Your mongoDB connection URL (You can use free 500mb from *mLab*) |
npm start
MIT © Semih Onay