Skip to content

Update to Antimalware Filter (.txt uploads)#925

Merged
MrHemlock merged 4 commits into
python-discord:masterfrom
Savant-Dev:antimalware
May 5, 2020
Merged

Update to Antimalware Filter (.txt uploads)#925
MrHemlock merged 4 commits into
python-discord:masterfrom
Savant-Dev:antimalware

Conversation

@Savant-Dev
Copy link
Copy Markdown
Contributor

This was a debate not only on the issue page: (see #889) but also in #meta a few times, and the consensus seemed to be that the primary focus should be the .txt file extension as there was no reason to unblock .csv, .json, or like file types.

Also, as for the message to display, I wanted to cover both case scenarios (someone who uploaded code, and someone whose message was too long) and writing a longer embed was the least expensive way to do so in my opinion. Here is a attachment of the output (don't mind the hyperlink, that's obviously just my config 😄) Please let me know if any changes should be made :)
InvalidExtensionEmbed

@Savant-Dev Savant-Dev requested a review from a team as a code owner May 4, 2020 23:02
@Savant-Dev Savant-Dev requested review from aeros and ikuyarihS and removed request for a team May 4, 2020 23:02
Copy link
Copy Markdown
Contributor

@lemonsaurus lemonsaurus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! I really like the language in that message, especially the word zapped.

Copy link
Copy Markdown
Member

@MrHemlock MrHemlock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks solid to me.

@MrHemlock MrHemlock merged commit 3533b06 into python-discord:master May 5, 2020
@Savant-Dev Savant-Dev deleted the antimalware branch May 7, 2020 14:03
@MarkKoz MarkKoz added a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) t: feature New feature or request labels May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: filters Related to message filters: (antimalware, antispam, filtering, token_remover) t: feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants