Menu

Tree [cecae6] master /
 History

HTTPS access


File Date Author Commit
 bin 2018-03-23 Semyonic Semyonic [12d9d1] Init
 models 2018-03-23 Semyonic Semyonic [208d33] Fix: When playlist change found but no track av...
 routes 2018-03-23 Semyonic Semyonic [12d9d1] Init
 .babelrc 2018-03-23 Semyonic Semyonic [12d9d1] Init
 .env 2018-03-23 Semyonic Semyonic [4efd48] Update project description and sample .env file
 .gitignore 2018-03-23 Semyonic Semyonic [4efd48] Update project description and sample .env file
 LICENSE 2018-03-23 Semih Onay Semih Onay [2fb3a1] Create LICENSE
 README.md 2018-03-23 Semih Onay Semih Onay [1e9e1e] Update README.md
 app.js 2018-03-23 Semyonic Semyonic [208d33] Fix: When playlist change found but no track av...
 package-lock.json 2018-05-16 dependabot[bot] dependabot[bot] [ae562f] Bump request from 2.85.0 to 2.86.0
 package.json 2018-05-16 dependabot[bot] dependabot[bot] [ae562f] Bump request from 2.85.0 to 2.86.0

Read Me

telegram-playlist-bot JavaScript Style Guide Codacy Badge

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)

Pre-Installation

  1. Obtain *Telegram Bot API Token* from BotFather @BotFather
  2. Create a Spotify Application from Developer Spotify

Installation

$ npm install

Then configure your *.env* file (Sample .env exists in this project)

Configuration

You can change polling frequency in .env file

*
.env Configuration Parameters
*

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*)

Usage

npm start

License

MIT © Semih Onay

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.