Coder Social home page Coder Social logo

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

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

discordyoutubenotifier's Issues

Docker support

is there any way to run this in docker or any thing close with commands

Problem Spotted

i have a problem on the code "UnhandledPromiseRejectionWarning: #"
"UnhandledPromiseRejectionWarning: Unhandled promise rejection."
pls help ๐Ÿฅฐ

TypeError: Cannot read properties of undefined (reading 'get')

Hello, once a new video is found, I get following error message:

DiscordYoutubeNotifier/index.js:117
        let channel = client.channels.cache.get(config.channel);
                                            ^

TypeError: Cannot read properties of undefined (reading 'get')
    at /home/redhair/node/DiscordYoutubeNotifier/index.js:117:45
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Node.js v17.1.0

Matrix Support?

It would be cool to have Matrix Support for those, like me, who don't like Discord.

I'll certainly try this out on my Discord Server, Thanks!

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.