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.
|
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.
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
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.