diff options
| author | 2021-02-20 15:45:14 +0200 | |
|---|---|---|
| committer | 2021-02-20 15:45:14 +0200 | |
| commit | 4e44238a81c5b489b31b257b7291033ca609c537 (patch) | |
| tree | e2ac4995279cab3508b2f23aa8ad4ea1e2589521 | |
| parent | Update CODEOWNERS (diff) | |
| parent | Merge branch 'master' into ks123/duplicates-ignore-attachments (diff) | |
Merge pull request #1404 from python-discord/ks123/duplicates-ignore-attachments
Ignore attachment-only messages for duplicates antispam rule
| -rw-r--r-- | bot/rules/duplicates.py | 1 | ||||
| -rw-r--r-- | config-default.yml | 2 | 
2 files changed, 2 insertions, 1 deletions
| diff --git a/bot/rules/duplicates.py b/bot/rules/duplicates.py index 455764b53..8e4fbc12d 100644 --- a/bot/rules/duplicates.py +++ b/bot/rules/duplicates.py @@ -13,6 +13,7 @@ async def apply(          if (              msg.author == last_message.author              and msg.content == last_message.content +            and msg.content          )      ) diff --git a/config-default.yml b/config-default.yml index 25bbcc3c5..beaf89f2c 100644 --- a/config-default.yml +++ b/config-default.yml @@ -371,7 +371,7 @@ anti_spam:      rules:          attachments:              interval: 10 -            max: 9 +            max: 6          burst:              interval: 10 | 
