All Projects → get-got → discord-downloader-go

get-got / discord-downloader-go

Licence: MIT license
A Discord bot program to download and otherwise handle files sent in Discord channels with extensive configuration. Can be used as a genuine Discord Bot or user account / self-bot

Programming Languages

go
31211 projects - #10 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to discord-downloader-go

Idt
Image Dataset Tool (idt) is a cli tool designed to make the otherwise repetitive and slow task of creating image datasets into a fast and intuitive process.
Stars: ✭ 202 (+19.53%)
Mutual labels:  download
Telegram Upload
Upload and download files from Telegram up to 2GiB using your account
Stars: ✭ 223 (+31.95%)
Mutual labels:  download
Youtube Dl Rest
Youtube & BiliBili 视频在线解析下载 -- Website for download the Youtube & BiliBili videos.
Stars: ✭ 242 (+43.2%)
Mutual labels:  download
Xmlyfetcher
喜马拉雅音频下载工具
Stars: ✭ 203 (+20.12%)
Mutual labels:  download
Scdlbot
Telegram Bot for downloading MP3 rips of tracks/sets from SoundCloud, Bandcamp, YouTube with tags and artwork.
Stars: ✭ 210 (+24.26%)
Mutual labels:  download
Bilibiliupload
Stream download and upload, not only for bilibili.
Stars: ✭ 232 (+37.28%)
Mutual labels:  download
Downloader
Powerful and flexible Android file downloader
Stars: ✭ 193 (+14.2%)
Mutual labels:  download
Minithunder
android迷你版迅雷,支持thunder:// ftp:// http:// ed2k:// 磁力链 种子文件的下载,音视频文件支持边下边播.
Stars: ✭ 254 (+50.3%)
Mutual labels:  download
Humblebundle Downloader
Download you Humble Bundle Library
Stars: ✭ 213 (+26.04%)
Mutual labels:  download
Anydlbot
An Open Source GPLv3 All-In-One Telegram Bot
Stars: ✭ 236 (+39.64%)
Mutual labels:  download
Saldl
A lightweight well-featured CLI downloader optimized for speed and early preview.
Stars: ✭ 203 (+20.12%)
Mutual labels:  download
Fiction house
小说精品屋是一个多平台(web、安卓app、微信小程序)、功能完善的屏幕自适应小说漫画连载系统,包含精品小说专区、轻小说专区和漫画专区。包括小说/漫画分类、小说/漫画搜索、小说/漫画排行、完本小说/漫画、小说/漫画评分、小说/漫画在线阅读、小说/漫画书架、小说/漫画阅读记录、小说下载、小说弹幕、小说/漫画自动采集/更新/纠错、小说内容自动分享到微博、邮件自动推广、链接自动推送到百度搜索引擎等功能。
Stars: ✭ 2,710 (+1503.55%)
Mutual labels:  download
Khinsider
A script for khinsider mass downloads. Get video game soundtracks quickly and easily! Also a Python interface.
Stars: ✭ 232 (+37.28%)
Mutual labels:  download
Googliser
a fast BASH multiple-image downloader
Stars: ✭ 202 (+19.53%)
Mutual labels:  download
Ipadownload
Search and download decrypted IPA file from 3rd-party App Store.
Stars: ✭ 247 (+46.15%)
Mutual labels:  download
Ibm Z Zos
The helpful and handy location for finding and sharing z/OS files, which are not included in the product.
Stars: ✭ 198 (+17.16%)
Mutual labels:  download
Sjnetwork
SJNetwork is a high level network request tool based on AFNetworking and inspired on YTKNetwork.
Stars: ✭ 231 (+36.69%)
Mutual labels:  download
harmony-discord
Harmony theme for Discord
Stars: ✭ 12 (-92.9%)
Mutual labels:  discordapp
Node Google Play
Get details and download apps from https://play.google.com by emulating an Android (Nexus 5X) device by default. For a rust version of this library check out https://github.com/dweinstein/rs-google-play
Stars: ✭ 247 (+46.15%)
Mutual labels:  download
Playmaker
Fdroid repository manager fetching apps from Play Store
Stars: ✭ 236 (+39.64%)
Mutual labels:  download

Discord Downloader Go



Join the Discord

Need help? Have suggestions? Join the Discord server!

DOWNLOAD LATEST RELEASE

Operating System Architectures ( ? = available but untested )
Windows amd64, arm64 (?), armv7/6/5 (?), 386 (?)
Linux amd64, arm64, armv7/6/5,
risc-v64 (?), mips64/64le (?), s390x (?), 386 (?)
Darwin (Mac) amd64 (?), arm64 (?)
FreeBSD amd64 (?), arm64 (?), armv7/6/5 (?), 386 (?)
OpenBSD amd64 (?), arm64 (?), armv7/6/5 (?), 386 (?)
NetBSD amd64 (?), arm64 (?), armv7/6/5 (?), 386 (?)

This project is a cross-platform cli single-file program to interact with a Discord Bot (genuine bot application or user account, limitations apply to both respectively) to locally download files posted from Discord in real-time as well as a full archive of old messages. It can download any directly sent Discord attachments or linked files and supports fetching highest possible quality files from specific sources (see list below). It also supports very extensive settings configurations and customization, applicable globally or per-server/category/channel/user. Tailor the bot to your exact needs and runtime environment. See the Features list below for the full list. See the List of Settings below for a settings breakdown. See Getting Started or anything else in the table of contents right under this to learn more!

Originally a fork of Seklfreak's discord-image-downloader-go

The original project was abandoned, for a list of differences and why I made an independent project, see below



⚠️ WARNING! Discord does not allow Automated User Accounts (Self-Bots/User-Bots)

Read more in Discord Trust & Safety Team's Official Statement...

While this project works for user logins, I do not reccomend it as you risk account termination. If you can, use a proper Discord Bot user for this program.

NOTE: This only applies to real User Accounts, not Bot users. This program currently works for either.

Now that that's out of the way...


🤖 Features

Supported Download Sources

  • Direct Links to Files
  • Discord File Attachments
  • Twitter (requires API key, see config section)
  • Instagram (requires account login, see config section)
  • Reddit
  • Imgur
  • Streamable
  • Gfycat
  • Tistory
  • Flickr (requires API key, see config section)
  • I'll always welcome requests but some sources can be tricky to parse...

Commands

Commands are used as ddg <command> <?arguments?> (unless you've changed the prefix)

Command Arguments? Description
help, commands No Lists all commands.
ping, test No Pings the bot.
info No Displays relevant Discord info.
status No Shows the status of the bot.
stats No Shows channel stats.
history SEE HISTORY SECTION (BOT AND SERVER ADMINS ONLY) Processes history for old messages in channel.
exit, kill, reload No (BOT ADMINS ONLY) Exits the bot (or restarts if using a keep-alive process manager).
emojis Optionally specify server IDs to download emojis from; separate by commas (BOT ADMINS ONLY) Saves all emojis for channel.

✔️ Getting Started

Confused? Try looking at the step-by-step list.

Depending on your purpose for this program, there are various ways you can run it.

You can either create a settings.json following the examples & variables listed below, or have the program create a default file (if it is missing when you run the program, it will make one, and ask you if you want to enter in basic info for the new file).

Tutorial Video

Getting Started Step-by-Step

  1. Download & put executable within it's own folder.
  2. Configure Main Settings (or run once to have settings generated). (SEE BELOW)
  3. Enter your login credentials in the "credentials" section. (SEE BELOW)
  4. Put your Discord User ID as in the "admins" list of the settings. (SEE BELOW)
  5. Put a Discord Channel ID for a private channel you have access to into the "adminChannels". (SEE BELOW)
  6. Put your desired Discord Channel IDs into th6e "channels" section. (SEE BELOW)
    • I know it can be confusing if you don't have experience with programming or JSON in general, but this was the ideal setup for extensive configuration like this. Just be careful with comma & quote placement and you should be fine. See examples below for help.

Bot Login Credentials

  • If using a Bot Application, enter the token into the "token" setting. Remove the lines for "username" and "password" or leave blank (""). To create a Bot User, go to discord.com/developers/applications and create a New Application. Once created, go to Bot and create. The token can be found on the Bot page. To invite to your server(s), go to OAuth2 and check "bot", copy the url, paste into browser and follow prompts for adding to server(s).
  • If using a User Account (Self-Bot) WITHOUT 2FA (2-Factor Authentication), fill out the "username" and "password" settings. Remove the line for "token" or leave blank ("").
  • If using a User Account (Self-Bot) WITH 2FA (2-Factor Authentication), enter the token into the "token" setting. Remove the lines for "username" and "password" or leave blank (""). Your account token can be found by opening the browser console / dev tools / inspect element > Network tab > filter for "library" and reload the page if nothing appears. Assuming there is an item that looks like the below screenshot, click it and find "Authorization" within the "Request Headers" section of the Headers tab. The random text is your token.

Permissions in Discord

  • In order to perform basic downloading functions, the bot will need Read Message permissions in the server(s) of your designated channel(s).
  • In order to respond to commands, the bot will need Send Message permissions in the server(s) of your designated channel(s). If executing commands via an Admin Channel, the bot will only need Send Message permissions for that channel, and that permission will not be required for the source channel.
  • In order to process history commands, the bot will need Read Message History permissions in the server(s) of your designated channel(s).

Bot Intents for Discord Application Bots

NECESSARY IF USING A GENUINE DISCORD APPLICATION
  • Go to the Discord Application management page, choose your application, go to the Bot category, and ensure Message Content Intent is enabled.

How to Find Discord IDs

  • Use the info command!
  • Discord Developer Mode: Enable Developer Mode in Discord settings under Appearance.
  • Finding Channel ID: Enable Discord Developer Mode (see above), right click on the channel and Copy ID.
  • Finding User ID: Enable Discord Developer Mode (see above), right click on the user and Copy ID.
  • Finding Emoji ID: Enable Discord Developer Mode (see above), right click on the emoji and Copy ID.
  • Finding DM/PM ID: Inspect Element on the DM icon for the desired user. Look for href="https://github.com/channels/@me/CHANNEL_ID_HERE". Using this ID in place of a normal channel ID should work perfectly fine.

Differences from Seklfreak's discord-image-downloader-go & Why I made this

  • Better command formatting & support
  • Configuration is JSON-based rather than ini to allow more elaborate settings and better organization. With this came many features such as channel-specific settings.
  • Channel-specific control of downloaded filetypes / content types (considers things like .mov as videos as well, rather than ignore them), Optional dividing of content types into separate folders.
  • (Optional) Reactions upon download success.
  • (Optional) Discord messages upon encountered errors.
  • Extensive bot status/presence customization.
  • Consistent Log Formatting, Color-Coded Logging
  • Somewhat different organization than original project; initially created from scratch then components ported over.
  • Various fixes, improvements, and dependency updates that I also contributed to Seklfreak's original project.

I've been a user of Seklfreak's project since ~2018 and it's been great for my uses, but there were certain aspects I wanted to expand upon, one of those being customization of channel configuration, and other features like message reactions upon success, differently formatted statuses, etc. If some aspects are rudimentary or messy, please make a pull request, as this is my first project using Go and I've learned everything from observation & Stack Overflow.


📚 Guide: Downloading History (Old Messages)

This guide is to show you how to make the bot go through all old messages in a channel and catalog them as though they were being sent right now, in order to download them all.

Command Arguments

If no channel IDs are specified, it will try and use the channel ID for the channel you're using the command in.

Argument / Flag Details
channel ID(s) One or more channel IDs, separated by commas if multiple.
all Use all available registered channels.
cancel or stop Stop downloading history for specified channel(s).
list or status Output running history jobs in Discord & program.
--since=YYYY-MM-DD Will process messages sent after this date.
--since=message_id Will process messages sent after this message.
--before=YYYY-MM-DD Will process messages sent before this date.
--before=message_id Will process messages sent before this message.

Order of arguments does not matter

Examples

  • ddg history
  • ddg history cancel
  • ddg history all
  • ddg history stop all
  • ddg history 000111000111000
  • ddg history 000111000111000, 000222000222000
  • ddg history 000111000111000,000222000222000,000333000333000
  • ddg history 000111000111000, 000333000333000 cancel
  • ddg history 000111000111000 --before=000555000555000
  • ddg history 000111000111000 --since=2020-01-02
  • ddg history 000111000111000 --since=2020-10-12 --before=2021-05-06
  • ddg history 000111000111000 --since=000555000555000 --before=2021-05-06
  • ddg history status
  • ddg history list

🛠 Settings / Configuration

I tried to make the configuration as user friendly as possible, though you still need to follow proper JSON syntax (watch those commas). Most settings are optional and will use default values or be unused if missing from your settings file.

When initially launching the bot it will create a default settings file if you do not create your own settings.json manually. All JSON settings follow camelCase format.

If you have a config.ini from Seklfreak's discord-image-downloader-go, it will import settings if it's in the same folder as the program.

The bot accepts .json or .jsonc for comment-friendly json.


EXAMPLE: ALL WITH DEFAULT VALUES

DO NOT LEAVE COMMAS , AFTER THE LAST ITEM IN A SECTION. JSON DOES NOT LIKE THIS, IT WILL ERROR.

{
    "credentials": {
        "token": "YOUR_USER_OR_BOT_TOKEN",        // user with 2FA or genuine Discord bot.
        "email": "YOUR_USER_EMAIL_NO_2FA",        // user without 2FA.
        "password": "YOUR_USER_PASSWORD_NO_2FA",  // user without 2FA.
        "twitterAccessToken": "",       // Twitter v1.1 API.
        "twitterAccessTokenSecret": "", // Twitter v1.1 API.
        "twitterConsumerKey": "",       // Twitter v1.1 API.
        "twitterConsumerSecret": "",    // Twitter v1.1 API.
        "instagramUsername": "", // Instagram Account, captcha required at some point(s).
        "instagramPassword": "", // Instagram Account, captcha required at some point(s).
        "flickrApiKey": ""
    },

    "admins": [
        "YOUR_DISCORD_USER_ID",
        "YOUR_FRIENDS_DISCORD_USER_ID",
        "YOUR_OTHER_FRIENDS_DISCORD_USER_ID"
    ],
    "adminChannels": [
        {
            "channel": "DISCORD_CHANNEL_ID_FOR_COMMANDS",
            "logProgram": false,      // output most program logging to channel (this is typically a lot)
            "logStatus": true,        // output program status updates to channel
            "logErrors": true,        // output download errors to channel
            "unlockCommands": false   // allow non-admins to use commands in this channel
        }
    ],

    "processLimit": 32, // # of concurrent tasks allowed at once.

    "debug": false,                 // detailed program info.
    "settingsOutput": true,         // display parsed settings on load.
    "messageOutput": true,          // display messages being processed in real time.
    "messageOutputHistory": false,  // display messages being processed while running history.

    "discordLogLevel": 0,         // discord API log leveling setting.
    "discordTimeout": 180,        // seconds to wait before giving up on a stale Discord connection.
    "downloadTimeout": 60,        // seconds to wait before giving up on a download.
    "downloadRetryMax": 3,        // times to retry a failed download.
    "exitOnBadConnection": false, // kill the program when encountering a faulty Discord connection rather than retrying.
    "githubUpdateChecking": true, // check for program updates on launch.

    "commandPrefix": "ddg ",      // prefix for discord commands.
    "scanOwnMessages": false,     // checks messages of authenticated user, should be false if genuine bot, true if selfbot.
    "allowGeneralCommands": true, // ping/help/info/etc.
    "inflateDownloadCount": 0,    // +/- displayed download tally.
    "europeanNumbers": false,     // 1.000.000,00 (disgusting) versus 1,000,000.00 (normal).

    "checkupRate": 30,        // minutes to print checkup line in program.
    "connectionCheckRate": 5, // minutes to check Discord connection for failure.
    "presenceRefreshRate": 3, // minutes to refresh Discord presence, sometimes it randomly goes blank.

    "save": true,
    "allowCommands": true,  
    "scanEdits": true,
    "ignoreBots": true,

    "sendErrorMessages": false,
    "sendFileToChannel": "",      // Forward detected media to channel.
    "sendFileToChannels": [ "" ], // ^.
    "sendFileDirectly": true,     // Send direct file as attachment or embed in message.
    "sendFileCaption": "",        // Caption to accompany media.

    "filenameDateFormat": "2006-01-02_15-04-05",  // Format for {{date}}.
    "filenameFormat": "{{date}} {{file}}",

    "presenceEnabled": true,
    "presenceStatus": "idle", // "online" or "idle" or "dnd" or "invisible".
    "presenceType": 0,        // 0 = Playing, 1 = Streaming, 2 = Listening, 3 = Watching.
    "presenceLabel": "{{timeSavedShort}} - {{countShort}} files",
    "presenceDetails": "{{timeSavedLong}}",       // user accounts only.
    "presenceDetails": "{{count}} files total",   // user accounts only.

    "reactWhenDownloaded": false,          // react to messages downloaded from.
    "reactWhenDownloadedEmoji": "",       // specify emoji for reactions, random otherwise.
    "reactWhenDownloadedHistory": false,  // react to messages downloaded from in history jobs.
    "historyTyping": true,  // show user as typing when processing history.
    "embedColor": "",       // override embed color, role color by default.

    "historyMaxJobs": 3,      // # of history jobs allowed to run concurrently, constrained by processLimit above.
    "autoHistory": false,     // automatically run history on launch.
    "autoHistoryBefore": "",  // YYYY-MM-DD for date filtering.
    "autoHistorySince": "",   // YYYY-MM-DD for date filtering.
    "sendAutoHistoryStatus": false, // send status message for auto history jobs.
    "sendHistoryStatus": true, // send status message for history jobs.

    "divideByYear": false,
    "divideByMonth": false,
    "divideByServer": false,
    "divideByChannel": false,
    "divideByUser": false,
    "divideByType": true, // images/videos/audio/text/other.
    "divideFoldersUseID": false, // use Discord IDs rather than user/server/channel names.
    "saveImages": true,
    "saveVideos": true,
    "saveAudioFiles": true,
    "saveTextFiles": false,
    "saveOtherFiles": false,
    "savePossibleDuplicates": true, // save if exact filename already exists.
    "filters": {
      // when "allowed" options are enabled, nothing is allowed unless it meets their criteria.
        "blockedPhrases": [ "" ],
        "allowedPhrases": [ "" ],

        "blockedUsers": [ "" ], // by Discord ID.
        "allowedUsers": [ "" ], // by Discord ID.

        "blockedRoles": [ "" ], // by Discord ID.
        "allowedRoles": [ "" ], // by Discord ID.

        "blockedDomains": [ "" ],
        "allowedDomains": [ "" ],

        "blockedExtensions": [ ".htm", ".html", ".php", ".exe", ".dll", ".bin", ".cmd", ".sh", ".py", ".jar" ],
        "allowedExtensions": [ "" ],

        "blockedFilenames": [ "" ], // List of phrases to check for in original filename, pre-formatting.
        "allowedFilenames": [ "" ],

        "blockedReactions": [ "" ], // List of reactions to block or allow, by ID only.
        "allowedReactions": [ "" ]
    },
    // duplicate image filtering
    // caching of image data is stored via a database file; it will not read all pre-existing images.
    "duplo": false,
    // threshold for what the bot considers too similar of an image comparison score.
    // * lower = more similar (lowest is around -109.7).
    // * higher = less similar (does not really have a maximum, would require your own testing).
    // if score is lower than your threshold, the image will be skipped.
    "duploThreshold": 0,

    "all": {
        "destination": "FOLLOW_CHANNELS_BELOW_FOR_REST"
    },
    "allBlacklistUsers": [ "" ],
    "allBlacklistServers": [ "" ],
    "allBlacklistCategories": [ "" ],
    "allBlacklistChannels": [ "" ],

    "users": [
        {
            "user": "SOURCE_DISCORD_USER_ID",
            "users": [ "SOURCE_DISCORD_USER_ID" ],
            "destination": "FOLLOW_CHANNELS_BELOW_FOR_REST"
        }
    ],

    "servers": [
        {
            "server": "SOURCE_DISCORD_SERVER_ID",
            "servers": [ "SOURCE_DISCORD_SERVER_ID" ],
            "serverBlacklist": [ "DISCORD_CHANNELS_TO_BLOCK" ],
            "destination": "FOLLOW_CHANNELS_BELOW_FOR_REST"
        }
    ],

    "categories": [
        {
            "category": "SOURCE_DISCORD_CATEGORY_ID",
            "categories": [ "SOURCE_DISCORD_CATEGORY_ID" ],
            "categoryBlacklist": [ "DISCORD_CHANNELS_TO_BLOCK" ],
            "destination": "FOLLOW_CHANNELS_BELOW_FOR_REST"
        }
    ],

    "channels": [
        {
            "channel": "SOURCE_DISCORD_CHANNEL_ID",
            "channels": [ "SOURCE_DISCORD_CHANNEL_ID" ],
            "destination": "files/example-folder",

            "enabled": true,
            "save": true,
            "allowCommands": true,
            "scanEdits": true,
            "ignoreBots": true,

            "sendErrorMessages": false,
            "sendFileToChannel": "",
            "sendFileToChannels": [ "" ],
            "sendFileDirectly": true,
            "sendFileCaption": "",

            "filenameDateFormat": "2006-01-02_15-04-05",
            "filenameFormat": "{{date}} {{file}}",

            "presenceEnabled": true,
            "reactWhenDownloaded": false,
            "reactWhenDownloadedEmoji": "",
            "reactWhenDownloadedHistory": false,
            "blacklistReactEmojis": [ "" ],
            "historyTyping": true,
            "embedColor": "",

            "autoHistory": false,
            "autoHistoryBefore": "",
            "autoHistorySince": "",
            "sendAutoHistoryStatus": false,
            "sendHistoryStatus": true,

            "divideByYear": false,
            "divideByMonth": false,
            "divideByServer": false,
            "divideByChannel": false,
            "divideByUser": false,
            "divideByType": true,
            "divideFoldersUseID": false,
            "saveImages": true,
            "saveVideos": true,
            "saveAudioFiles": true,
            "saveTextFiles": false,
            "saveOtherFiles": false,
            "savePossibleDuplicates": true,
            "filters": {
                "blockedPhrases": [ "" ],
                "allowedPhrases": [ "" ],

                "blockedUsers": [ "" ],
                "allowedUsers": [ "" ],

                "blockedRoles": [ "" ],
                "allowedRoles": [ "" ],

                "blockedExtensions": [ ".htm", ".html", ".php", ".exe", ".dll", ".bin", ".cmd", ".sh", ".py", ".jar" ],
                "allowedExtensions": [ "" ],

                "blockedDomains": [ "" ],
                "allowedDomains": [ "" ]
            },
            "duplo": false,
            "duploThreshold": 0,

            "logLinks": {
                "destination": "",
                "destinationIsFolder": false,

                "divideLogsByServer": true,
                "divideLogsByChannel": true,
                "divideLogsByUser": false,
                "divideLogsByStatus": false,
                
                "logDownloads": true,
                "logFailures": true,

                "filterDuplicates": false,
                "prefix": "",
                "suffix": "",
                "userData": false
            },

            "logMessages": {
                "destination": "",
                "destinationIsFolder": false,

                "divideLogsByServer": true,
                "divideLogsByChannel": true,
                "divideLogsByUser": false,

                "filterDuplicates": false,
                "prefix": "",
                "suffix": "",
                "userData": false
            }

        }

    ]
}

EXAMPLE: BARE MINIMUM

{
    "credentials": {
        "token": "YOUR_USER_OR_BOT_TOKEN",
        "email": "YOUR_USER_EMAIL_NO_2FA",
        "password": "YOUR_USER_PASSWORD_NO_2FA"
    },

    "admins": [ "YOUR_DISCORD_USER_ID" ],
    "adminChannels": [{ "channel": "DISCORD_CHANNEL_ID_FOR_COMMANDS" }],

    "channels": [
        {
            "channel": "SOURCE_DISCORD_CHANNEL_ID",
            "destination": "files/example-folder"
        }
    ]
}

EXAMPLE: SERVER WITH FRIENDS

{
    "credentials": {
        "token": "YOUR_USER_OR_BOT_TOKEN",
        "email": "YOUR_USER_EMAIL_NO_2FA",
        "password": "YOUR_USER_PASSWORD_NO_2FA"
    },

    "admins": [ "YOUR_DISCORD_USER_ID" ],
    "adminChannels": [{ "channel": "DISCORD_CHANNEL_ID_FOR_COMMANDS" }],

    "save": true,
    "allowCommands": true,
    "scanEdits": true,
    "ignoreBots": false,

    "sendErrorMessages": true,

    "presenceEnabled": true,
    "presenceStatus": "idle",
    "presenceType": 0,
    "presenceLabel": "{{timeSavedShort}} - {{countShort}} files",
    "presenceDetails": "{{timeSavedLong}}",
    "presenceDetails": "{{count}} files total",

    "reactWhenDownloaded": true,
    "reactWhenDownloadedHistory": true,
    "historyTyping": true,

    "channels": [
        {
            "channel": "SOURCE_DISCORD_CHANNEL_ID",
            "destination": "files/example-folder"
        }
    ]
}

EXAMPLE: SCRAPING PUBLIC SERVERS

{
    "credentials": {
        "token": "YOUR_USER_OR_BOT_TOKEN",
        "email": "YOUR_USER_EMAIL_NO_2FA",
        "password": "YOUR_USER_PASSWORD_NO_2FA"
    },

    "admins": [ "YOUR_DISCORD_USER_ID" ],
    "adminChannels": [{ "channel": "DISCORD_CHANNEL_ID_FOR_COMMANDS" }],

    "save": true,
    "allowCommands": false, // they'll probably kick you otherwise.
    "scanEdits": true,
    "ignoreBots": false,

    "sendErrorMessages": false, // they'll probably kick you otherwise.

    "presenceEnabled": false, // they'll probably kick you otherwise.
    "presenceStatus": "invisible", // or "dnd" or "idle"
    
    "reactWhenDownloaded": false, // they'll probably kick you otherwise.
    "reactWhenDownloadedHistory": false, // they'll probably kick you otherwise.
    "historyTyping": false, // they'll probably kick you otherwise.

    "channels": [
        {
            "channel": "SOURCE_DISCORD_CHANNEL_ID",
            "destination": "files/example-folder"
        }
    ]
}

FAQ


  • Q: How do I convert from Seklfreak's discord-image-downloader-go?
  • A: Place your config.ini from that program in the same directory as this program and delete any settings.json file if present. The program will import your settings from the old project and make a new settings.json. It will still re-download files that DIDG already downloaded, as the database layout is different and the old database is not imported.

⚙️ Development

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].