Skip to content

Arboff/DiscordBulkImageBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Discord Bulk Image Sending Bot

Send bulk images to Discord channel.

This is a bot script that will allow you to send multiple images to Discord channel avoiding the 10 media per time limitation + Bypass for file size limitation.

Requiremens:

  • Python 3.9
  • Discord.py (pip install discord)
  • Discord bot with the following permissions:
  • Send Messages.
  • Send Messages in Threads.
  • Send TTS Messages.
  • Embed Links (In case you need to send a link as a footer.).
  • Attach Files.
  • Use Slash Commands.

Features

  • Bypass Discord limitation of 10 media files per Message.
  • Fully automatic.
  • Doesn't try to send files bigger than Discord Limitations (10mb).
  • Unlimited File Count.
  • No need for cloud host, works on your machine, open source, no chance for token steal.
  • PREFIX - !dib

Installation

DIB requires Python 3.9 to run.

Install the dependencies via Python Console / Linux Terminal.

Run using: cd DiscordBulkImageBot python3 main.py

pip install discord
pip install os #Just in case you are missing the package for some reason.

Variables

Footer # OPTIONAL #:

link = ''         #OPTIONAL: You can add anything to be send to the channel after the images are done sending, EG Invite link, socials, etc.

Path to Folder # REQUIRED #:

path = ''          #REQUIRED: Add directory to your image folders path on your local machine.

TOKEN # REQUIRED #:

TOKEN = ''      #Bot Token goes here. See Discord Developer Portal for more info.

Log in Console # OPTIONAL #:

#print(f'{username}: {user_message} ({channel})')    #Uncomment if you want the bot to log all messages in the console.

Infinite Loop Protection # REQUIRED #:

if message.author == client.user:                   #Avoid infinite loop. DO NOT REMOVE.

Size Limiter # REQUIRED #:

if os.path.getsize(path + filename) < 10000000:       #If file is >10mb, it gets skipped and logged in Console due to Discord limitations.

Final Log # OPTIONAL #:

#print(f'Sucessfully uploaded {count} files.')   Final log. Uncomments if you want to get log in console of how many files were transfered.

Bot Initialization # REQUIRED #:

client.run(TOKEN) #initialization.

License

MIT

Free Software, Hell Yeah!

About

Discord bot script for sending multiple media files to a discord channel according to discord limitations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages