Skip to content

nLight/youtube-comments-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Send YouTube Comments to Telegram

FOMO is not allowed. Configure the bot to check your YouTube channel periodically and send all the new comments your way. No need to be checking comments compulsively. No need to enable YouTube's native notification.

Be in control.

Setup

It stores data in Sqlite3 database and will not send the messages twice.

Deliver messages

Add something like this to the `cron``

0 7 * * * NODE_ENV=production BOT_TOKEN= TELEGRAM_CHAT_ID= GOOGLE_API_KEY= YOUTUBE_CHANNEL_ID= node scripts/check-messages.js

Start the bot

NODE_ENV=production BOT_TOKEN= PORT= node index.js

It will be listening on:

http://<domain>:<PORT>/<BOT_TOKEN>

Required ENV variables

BOT_TOKEN=
TELEGRAM_CHAT_ID=
GOOGLE_API_KEY=

Optional ENV variables

SENTRY_DSN=

Features

  1. i18n: русский, english

Roadmap

  1. Reply to comments repying to Telegram messages
  2. Treshold. Don't notify about emoji comments
  3. Stop list. Don't notify about certain people's messages.
  4. Load more comments if the first page is all new.
  5. Filters: subscribers / members
  6. Track replies

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published