-
-
Notifications
You must be signed in to change notification settings - Fork 731
Open
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)l: 1 - intermediatep: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing featuresChanges or improvements to existing features
Description
Example: https://discord.com/channels/267624335836053506/463035268514185226/1431497703447199774
This leads to some false positives when a gallery of 7 or more attachments are sent on a message.
bot/bot/exts/filtering/_filters/antispam/attachments.py
Lines 12 to 21 in 2640aaa
| class ExtraAttachmentsSettings(BaseModel): | |
| """Extra settings for when to trigger the antispam rule.""" | |
| interval_description: ClassVar[str] = ( | |
| "Look for rule violations in messages from the last `interval` number of seconds." | |
| ) | |
| threshold_description: ClassVar[str] = "Maximum number of attachments before the filter is triggered." | |
| interval: int = 10 | |
| threshold: int = 6 |
It would be great to support full 10 attachments before triggering this rule so a single message with 10 attachments doesn't trigger the antispam rule.
Metadata
Metadata
Assignees
Labels
a: filtersRelated to message filters: (antimalware, antispam, filtering, token_remover)Related to message filters: (antimalware, antispam, filtering, token_remover)l: 1 - intermediatep: 3 - lowLow PriorityLow Prioritystatus: approvedThe issue has received a core developer's approvalThe issue has received a core developer's approvalt: enhancementChanges or improvements to existing featuresChanges or improvements to existing features