Skip to content

Introducing the YouTube Subscriber Verifier bot! This Bot allows users to verify their YouTube subscription by uploading images. The bot checks for specific keywords or channel names in the image, assigns roles, and optionally saves user data. Ensure your bot's configuration is set correctly to use this feature! πŸš€πŸ“Έ

Notifications You must be signed in to change notification settings

devuuuxd/Youtube-Subscriber-Verfier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

YouTube Subscriber Verifier πŸŽ₯βœ”οΈ

Description

The YouTube Subscriber Verifier is a Discord bot designed to verify if users have subscribed to a specified YouTube channel. It analyzes images uploaded by users to check for text that matches the channel's name or specific keywords. If a match is found, it grants a role to the user in the Discord server. The bot also supports saving subscriber data for record-keeping. πŸ“œ

Features ✨

  • Image Analysis: Uses Tesseract.js and sharp to process and analyze uploaded images. πŸ–ΌοΈ
  • Keyword Matching: Checks for specific keywords or the channel name in the image text. πŸ”
  • Role Assignment: Grants a specified role to users who successfully verify their subscription. πŸŽ–οΈ
  • Data Saving: Optionally saves verified user data in a subscriber.json file. πŸ’Ύ
  • Ephemeral Responses: Sends ephemeral messages to users for privacy. πŸ”’

Prerequisites πŸ› οΈ

  • Node.js (v16 or higher recommended) πŸš€
  • npm or yarn for managing packages πŸ“¦
  • A Discord bot token πŸ”‘
  • A YouTube channel name to verify subscriptions πŸ“Ί

Installation πŸ› οΈ

  1. Clone the repository:

    git clone https://github.com/devuuuxd/YouTube-Subscriber-Verifier.git
    cd YouTube-Subscriber-Verifier
  2. Install dependencies:

    npm install
  3. Create a config.js file in the root directory with the following content:

    module.exports = {
        token: "YOUR_BOT_TOKEN_HERE", // Add your bot's token here
        channel_name: "@devuuuu_xd", // Specify your YouTube channel's name here
        role_id: "YOUR_ROLE_ID_HERE", // ID of the role to be given
        keywords: "SUBSCRIBED", // Specify the keywords for analyzing the image
        save_data: "false" // Set to "true" to save data in subscriber.json, "false" otherwise
    };
  4. Run the bot:

    node index.js
    
  5. Setting Up: Ensure that your bot has the necessary permissions in your Discord server, including managing roles and sending messages. πŸ› οΈ

  6. Bot Behavior: The bot will:

    • Check if the user is already verified.
    • Analyze the uploaded image to detect the specified channel name or keywords.
    • Assign the role if the criteria are met.
    • Optionally save user data based on your configuration.

Example Usage πŸ“‹

  1. Verify Command:

    • Type /verify in a channel where the bot is present.
    • Attach an image that contains text related to the YouTube channel name or specified keywords.
    • The bot will process the image and respond with the verification result.
  2. Response:

    • If the image contains the correct text, the bot will assign the role and confirm the verification.
    • If the text is not found, the bot will send an ephemeral message with instructions or a sample image.

Troubleshooting πŸ› οΈ

  • Bot Not Responding: Ensure your bot is online and the token in config.js is correct.
  • Permission Issues: Verify that the bot has appropriate permissions in your Discord server.
  • Image Issues: Make sure the image format is supported and accessible.

Changelog πŸ“œ

  • Check the changelog and other releases here. πŸš€

Contact πŸ“§

For any questions or support, please open an issue on the GitHub repository or contact me directly on our Team's Discord Server Kronix Development.

Happy verifying! πŸŽ‰

About

Introducing the YouTube Subscriber Verifier bot! This Bot allows users to verify their YouTube subscription by uploading images. The bot checks for specific keywords or channel names in the image, assigns roles, and optionally saves user data. Ensure your bot's configuration is set correctly to use this feature! πŸš€πŸ“Έ

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published