Skip to content

Description

Our YouTube notification module is designed to allow your community to automatically follow new videos from their favorite creators directly on Discord!
Additionally, it automatically updates the name of a voice channel to display the real-time subscriber count of the YouTube channel 📊.

  1. Monitoring YouTube channels
  2. The module regularly checks configured YouTube channels to detect any new videos published. You can configure multiple channels to monitor simultaneously 📺.

  3. Automatic notification
  4. As soon as a new video is detected, the module automatically creates a notification in the configured Discord channel with the link, which includes:

    • 🔗 Direct link to the video
    • 🎥 Video title
    • 📝 Creator
    • 🖼️ Video thumbnail
    YouTube notification image
  5. Notification customization
  6. You will be able to configure:

    • 📢 The role to mention when a new video is posted
    • 🎯 The destination channel for notifications
    • ⏱️ The frequency of checking for new videos
  • 🎯 Never miss a video from your favorite creators
  • 🤖 Full automation of the notification process
  • 📊 Simple and centralized management of channels to monitor
  • 🔔 Customizable and informative notifications
  • The module will not work by just downloading the files; it must be integrated into an already functioning Discord bot
  • We use Prisma as the ORM for database management; make sure your project also uses Prisma or adapt the code accordingly
  • A functional Discord bot with the necessary permissions
  • A valid YouTube API key -> See installation section
  • Knowledge in Discord bot development (Javascript) and database management
  • Directorycommands
    • Directorynotification
      • notification-add.js Slash command implementation
      • notification-list.js Slash command implementation
      • notification-remove.js Slash command implementation
  • Directoryprisma
    • schema.prisma Data model for the module (Prisma)
  • Directoryutils
    • Directorynotification
      • youtube.js Utility functions for YouTube management
    • utils.js Reusable functions
  • .env Required environment variables
  • index.js Script entry point
  • package.json Required dependencies

Here are the versions used for development and testing the script:

  • @prisma/client@6.18.0
  • discord.js@14.24.0
  • dotenv@16.6.1
  • uuid-js@0.7.5
  • axios@0.26.1