Skip to content

skellgreco/discord-photos-backup-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Discord Photos Downloader

⚙ A Node.js script that collects and saves all images from a specified Discord channel.

Features

  • Downloads all images from message attachments, embeds, and URLs in a specified channel
  • Displays "currently downloading" status for each file
  • Skips files that have already been downloaded
  • Skips files larger than a configurable size limit
  • Works with all common image formats (jpg, png, gif, webp, etc.)

Requirements

  • Node.js (v16.6.0 or higher recommended)

How to run

  1. Install node.js
  2. Clone Project
  3. Run npm i
  4. Run node index.js
  5. Configure TOKEN, CHANNEL_ID, DOWNLOAD_FOLDER, MAX_FILE_SIZE_MB in index.js according to your needs
  6. Done! Your photos should appear on your console and the files should start downloading!

Important

Make sure that your bot has Message Content Intent enabled in the Discord Developers Dashboard

Made by Skell! You are free to download, run or edit this code!

About

⚙️ A simple discordjs application to save locally every photo published in a Discord Channel

Topics

Resources

Stars

Watchers

Forks