get-got / discord-downloader-go

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
MIT License
277 stars 31 forks source link

Feature suggestion: Filter download by user #53

Closed acheong08 closed 2 years ago

acheong08 commented 2 years ago

Is it possible to download history and filter by user?

Leebo-missile commented 2 years ago

I was also wondering I would like to download only images mentioend @ a specific user, such as images mentioned to @username

get-got commented 2 years ago

@acheong08 @Leebo-missile

{
    "channels": [
        {
            "destination": "x",
            "channel": "123456789012345678",
            "filters":
            {
                "allowedPhrases": [ "<@user:id>", "hello" ],
                "allowedUsers": [ "123456789012345678", "123456789012345678" ]
            }
        }
    ]
}

allowedPhrases if used without blockedPhrases, no messages will be processed unless they contain an allowed phrase. allowedUsers will ONLY process messages if they were sent from the following users.