diff options
author | 2023-04-12 20:39:33 +0100 | |
---|---|---|
committer | 2023-04-12 19:39:33 +0000 | |
commit | baa21fb4be3c823fc31d897db7accb386df73443 (patch) | |
tree | 125a1432bf9498290c2c63f1220ff1a4044f8fae | |
parent | Fix spacing in eval message (#2534) (diff) |
Use correct names for antispam rules (#2535)
-rw-r--r-- | bot/exts/filtering/_filters/antispam/links.py | 2 | ||||
-rw-r--r-- | bot/exts/filtering/_filters/antispam/mentions.py | 2 | ||||
-rw-r--r-- | bot/exts/filtering/_filters/antispam/role_mentions.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/filtering/_filters/antispam/links.py b/bot/exts/filtering/_filters/antispam/links.py index ca6e9d031..0a2a98fc8 100644 --- a/bot/exts/filtering/_filters/antispam/links.py +++ b/bot/exts/filtering/_filters/antispam/links.py @@ -24,7 +24,7 @@ class ExtraLinksSettings(BaseModel): threshold: int = 10 -class DuplicatesFilter(UniqueFilter): +class LinksFilter(UniqueFilter): """Detects too many links sent by a single user.""" name = "links" diff --git a/bot/exts/filtering/_filters/antispam/mentions.py b/bot/exts/filtering/_filters/antispam/mentions.py index 782e14a64..6d541a28c 100644 --- a/bot/exts/filtering/_filters/antispam/mentions.py +++ b/bot/exts/filtering/_filters/antispam/mentions.py @@ -26,7 +26,7 @@ class ExtraMentionsSettings(BaseModel): threshold: int = 5 -class DuplicatesFilter(UniqueFilter): +class MentionsFilter(UniqueFilter): """ Detects total mentions exceeding the limit sent by a single user. diff --git a/bot/exts/filtering/_filters/antispam/role_mentions.py b/bot/exts/filtering/_filters/antispam/role_mentions.py index 151dc49be..af8bf9bf9 100644 --- a/bot/exts/filtering/_filters/antispam/role_mentions.py +++ b/bot/exts/filtering/_filters/antispam/role_mentions.py @@ -21,7 +21,7 @@ class ExtraRoleMentionsSettings(BaseModel): threshold: int = 3 -class DuplicatesFilter(UniqueFilter): +class RoleMentionsFilter(UniqueFilter): """Detects too many role mentions sent by a single user.""" name = "role_mentions" |