Skip to content

A bot to send your youtube channel notifications to discord

License

Notifications You must be signed in to change notification settings

CRZA5/youtube-notifications-bot-ts

Repository files navigation

Youtube Notification Bot

A bot to send your youtube channel notifications to discord

What this bot does

  1. Stores Video links
  2. Keeps checking for new video every 20 seconds
  3. If a unstored video is found then sends notification in discord and stores it

Prerequisites

  • Node.js v12 or above
  • Mongodb

Installation

Installing Node.js

Running the bot

Clone the repo

 git clone https://github.com/CRZA5/CRZA5/youtube-notifications-bot-ts.git
 cd CRZA5/youtube-notifications-bot-ts

Install dependencies

  • Yarn
  yarn
  • npm
 npm install

Compile Typescript to JavaScript

  • Yarn
  yarn build
  • npm
 npm run build

Create .env file

MONGO_URL="your mongo uri"
TOKEN="your bot token"
NODE_ENV=development or production

Start the bot

 yarn start

Docker

Create .env file

MONGO_URL="your mongo uri"
TOKEN="your bot token"
NODE_ENV=development or production

Pull the image

 docker pull ghcr.io/crza5/youtube-notifications-bot-ts:latest

Run the bot

  docker run --restart=always -d --env-file .env ghcr.io/crza5/youtube-notifications-bot-ts:latest

License

MIT

About

A bot to send your youtube channel notifications to discord

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages