Skip to content

This Discord bot is designed to facilitate the seamless sharing of media files within Discord servers as media channels only

Notifications You must be signed in to change notification settings

kasem545/discord-media-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This Discord bot is designed to facilitate the seamless sharing of media files within Discord servers as media channels only

Topics

Resources

Stars

Watchers

Forks

Languages