/youtubecommunitybot

YouTube Community Bot posts updates of a YouTube Channel's Community Posts to a Discord Server Channel.

Primary LanguageJavaScript

YouTube Community Bot

📚 Table of Contents

👁 Overview

Looking for a bot which will alert your followers about your latest YouTube Community Post? YouTube Community Bot is the solution for posting your latest YouTube Community posts to your Discord server.

YouTube Community Bot will monitor a specific YouTube channel and post the latest image, poll or text post to your desired Discord channel. 🚀

🎯 YouTube Community Bot Features

  • Posts the Latest YouTube Community Post - No need to worry about our bot spamming your server with posts. YouTube Community Bot will only post if there's new content available.

  • Supports All YouTube Community Post Types - All post types are supported including polls. Whether your favourite YouTuber creates polls, image and text posts, our bot will send them to you.

  • Choose your YouTube Channel - Pick the YouTube channel of your choice. You can be notified of any YouTube channel you wish.

  • Install on your Server - Use the invite link to invite YouTube Community Bot to your server. Follow the installation instructions to set up the bot.

  • Pick Any Channel - Choose any channel you wish our bot to post in. Don't have a specific #updates channel? Pick any existing channel or create a new one specifically for the bot.

⚡ Installation

Discord Server

Love our bot and want to install it in your Discord server? 😍

  • Head over to the invite link.

  • Select the server you want to download YouTube Community Bot in.

Server Installation Page

Self-hosting the Bot

  • Currently, you'll need to self-host YouTube Community Bot and manually define the YouTube Channel ID, Discord Server ID and Discord Channel ID for the bot to work.

  • Follow the instructions below, and you are good to go 💯

Here's a step by step guide on how to install and run the bot.

  1. Clone the repository using git clone https://github.com/louisefindlay23/youtubecommunitybot
  2. Install needed NPM packages with npm install
  3. Create an .env file with information for the following five variables:
    1. BOT_TOKEN - View instructions to obtain through the Discord Developer Portal
    2. SERVER_ID - Use this guide to obtain the ID of your Discord Server.
    3. CHANNEL_ID - To find the ID of an individual Discord Channel, follow this guide
    4. YT_API_URL - Use the YouTube Operational API URL (https://yt.lemnoslife.com) or self-host it and append /channels?part=community&id=.
    5. YT_CHANNEL_ID - Enter the name or URL of the desired YouTube channel here to obtain its Channel ID.
  4. Run the bot with npm start
git clone https://github.com/louisefindlay23/youtubecommunitybot
cd youtubecommunitybot
npm install
nano .env
BOT_TOKEN=<Discord Token>
SERVER_ID=<Discord Server ID>
CHANNEL_ID=<Discord Channel ID>
YT_API_URL=<YouTube Operational API URL>
YT_CHANNEL_ID=<YouTube Channel ID>

And the YouTube Community Bot should be running 🚀. Every hour, the bot will check for any new posts and then post them in the specific Discord channel you chose.

Encounter any issues? Feel free to open an issue with a detailed description of any error messages that occur and describe the specific problem and I'd be happy to help.

👀 Screenshots

YouTube Community Bot Text Screenshot YouTube Community Bot Poll Screenshot
YouTube Community Bot Image Screenshot

💡 Why YouTube Community Bot Was Built

Subscribers are not always notified of every community post from a subscribed channel so this Discord Bot aims to solve this by creating a new post in a specified server channel whenever a channel releases a new Community Post.

💻 NPM Modules

A range of NPM Modules was used in order to create YouTube Community Bot.