Git Product home page Git Product logo

discord-media-bot's Introduction

Description

need help to setup feel free to contact me on discord @kasemsh

Discord Media Bot

This Discord bot streamlines the sharing of media files within Discord servers, providing users with a straightforward method to upload images or videos to designated channels using simple slash commands. It grants users flexibility by enabling them to specify the type of media (image or video) they are uploading and the target channel for delivery.

Features

  • Media Upload: Users can effortlessly upload media files (images or videos) directly to Discord channels using intuitive slash commands.

  • Media Type Verification: The bot validates the type of media being uploaded (image or video) to ensure compatibility with Discord's requirements.

  • Channel Selection: Users have the flexibility to designate the target channel where the media should be dispatched. If no channel is specified, the bot automatically selects a default channel.

  • Error Handling: The bot gracefully manages various error scenarios, such as invalid media types, missing attachments, and inability to locate specified channels.

  • Usage Instructions: Users can access clear usage instructions by invoking a dedicated slash command, providing guidance on leveraging the bot's functionalities.

  • Reliability: The bot is engineered to be reliable and responsive, optimized to deliver timely responses to user interactions.

New Added Features

  • Comments: ability to add a comment on upload

Implementation

This bot is implemented in Python using the nextcord library, a modern Python library for interfacing with the Discord API. It utilizes the nextcord.ext.commands extension for defining slash commands and managing interactions. Sensitive information such as the bot token is securely accessed through environment variables stored in a config.json file.

Usage

To utilize the bot, users simply invoke the appropriate slash command (/send_media), specifying the desired media type (image or video) and, optionally, the target channel name. They can attach the media file to the command, and the bot will handle the rest, uploading the media to the specified channel.

Installation

  1. Clone the repository:

    git clone https://github.com/kasem545/discord-media.git
  2. Install dependencies:

    pip install -r requirements.txt
  3. configure the Discord bot in config.json file :

  4. Run the bot:

    python main.py

Overall

This Discord bot simplifies the process of sharing media files within Discord servers, promoting collaboration and communication among users. With its user-friendly interface and robust functionality, it serves as a valuable asset for communities seeking to exchange media content seamlessly.

Feel free to customize and expand upon this description based on your specific bot functionalities and use cases!

image-upload.2.mp4
video-upload.2.mp4

discord-media-bot's People

Contributors

kasem545 avatar

Stargazers

 avatar

Watchers

 avatar  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.