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
270 stars 30 forks source link

Bots Not Respecting Blacklist Filenames #146

Open BigFlubba opened 2 weeks ago

BigFlubba commented 2 weeks ago

When I set blacklist filename it is still downloading the image. Would I need to add the filename plus the format (blank.png)?

get-got commented 1 week ago

Make sure you're doing "blockedFilenames" within a "filters" group and nothing else, it should be working.

It doesn't need to be a complete match, it checks to see if the filename contains any of your phrases within "blockedFilenames".

BigFlubba commented 1 week ago

Like this?

    "filters": {
        "blockedFilenames": [ "removed" ]
    },

If so, I think I found the issue I had an extra space before "blockedFilenames": [ "removed" ]. I'm surprised it didn't throw an invalid syntax error.

BigFlubba commented 1 week ago

After correcting that it is still downloading the images.

image

image