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)
- Obtain Telegram Bot API Token from BotFather @BotFather
- Create a Spotify Application from Developer Spotify
$ 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