GithubHelp home page GithubHelp logo

kareemadelawwad / discordyoutubenotifier Goto Github PK

View Code? Open in Web Editor NEW

This project forked from androz2091/discordyoutubenotifier

0.0 0.0 0.0 17 KB

Be notified when one of your favorite youtubers posts a video!

JavaScript 100.00%

discordyoutubenotifier's Introduction

Atlanta

Discord Youtube Notifier

CodeFactor

This bot is not available for invite.

Discord Youtube Notifier bot allows you to receive your Youtube notifications directly on Discord!

Features

๐Ÿšฉ Use of the simple RSS technology
โ–ถ๏ธ Unlimited YouTubers support (you can add as many as you want)
๐ŸŒ Automatic resolving Youtube channels URLs
๐Ÿ“ Custom messages for announcements messages

How it works?

Here is a simplified explanation of how the bot works:

  • Every 20 seconds, a function queries Youtube (using RSS) to get the latest video from the Youtuber.

  • If a video is found, it is checked twice:

    • Was the video published after the bot started?
    • Hasn't the video already been posted on Discord?
  • Then, the video is sent on discord

Edit config

You must edit the configuration file for the bot to work correctly:

{
    "token": "your-discord-bot-token-here",
    "message": "New video **{videoTitle}** by **{videoAuthorName}** uploaded at **{videoPubDate}**! Link: {videoURL}",
    "channel": "your-channel-id-for-announcements-here",
    "youtubers": [
        "Pewdiepie",
        "Squeezie",
        "https://www.youtube.com/channel/UCNuYih-JMtLxOlsjeIos4ZA"
    ],
    "youtubeKey": "your http://console.developer.google.com youtube v3 api key"
}

token: your discord bot token
message: the message that will be sent in the announcement channel when a new video is uploaded
channel: the id of the announcement channel
youtubers: an array of your subscriptions, this can be a youtuber name or a youtuber channel url
youtubeKey: your youtube api v3 api key. It can be found here

discordyoutubenotifier's People

Contributors

androz2091 avatar dorian349 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.