Skip to content

Downloads all .png, .jpg, .jpeg, .gif, .webm, and .mp4 files from a discord channel

Notifications You must be signed in to change notification settings

digitaldisarray/DiscordMediaDownloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

DiscordMediaDownloader

Downloads all .png, .jpg, .jpeg, .gif, .webm, and .mp4 files from a discord channel Great for archiving memes

Media downloader script usage

  • Use DiscordChatExporter to export a .json file of the desired text channel(s).
  • Move the .json file into the same directory as main.go and rename the .json file "messages.json".
  • Run the go command with "go run main.go" in the directory.
  • All files will be saved to the downloads folder found in the repository directory. Duplicate files will have _1, _2, _3, etc added to the name.

Bot usage (optional)

  • Use the discord developer portal to create a new application, and then add a bot to it.
  • Generate a OAuth2 URL in the developer portal with permissions to read messages, manage messages, view channels, and view message history.
  • Add your bots token to bot.py
  • Make sure you have discord.py installed and then run the bot with "python bot.py"
  • In a given channel, type "-remove " followed by a list of message ids seperated by any sort of character.

About

Downloads all .png, .jpg, .jpeg, .gif, .webm, and .mp4 files from a discord channel

Topics

Resources

Stars

Watchers

Forks