feat(messageCreate): Act on suspicious amount of attachments (mrbeast)#382
Merged
Conversation
Member
|
Why is there a block of commented code? Unless it is absolutely necessary, we shouldn't add comments to the codebase |
Contributor
Author
|
forgot to remove it. Will also remove the 2/4 image check as we've seen posts with just one the psst few days. |
Member
|
Only one image is problematic because then memes and stuff get flagged |
Contributor
Author
Wdym? as long as the exact same image isnt sent in <30sec its fine. And if it is, then a mod can still pardon. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For now this is very basic. It catches all messages with 2 or 4 attachments and if a message with at least one identical attachment was sent in the past 30 seconds the message is deleted.
If a banned word
SUS_ATTACHMENTis present, the message will be treated with the moderation actions connected to that word. Else, a log will be pushed.Original poc by @Sandy