diff options
author | 2020-05-04 18:49:01 -0400 | |
---|---|---|
committer | 2020-05-04 18:49:01 -0400 | |
commit | b6ebfb756a03f337da0a3da37c985b798a316de2 (patch) | |
tree | 378467bdb3e7381c7a9bc7a15faab91d0afb1c60 | |
parent | Update extension filter to distinguish .txt in cases where messages are longe... (diff) |
Update antimalware to filter txt files in cases where messages were longer than 2000 chars
-rw-r--r-- | bot/cogs/antimalware.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bot/cogs/antimalware.py b/bot/cogs/antimalware.py index 72fb574b9..66b5073e8 100644 --- a/bot/cogs/antimalware.py +++ b/bot/cogs/antimalware.py @@ -44,11 +44,11 @@ class AntiMalware(Cog): embed.description = ( "**Uh-oh!** It looks like your message got zapped by our spam filter. " "We currently don't allow `.txt` attachments, so here are some tips to help you travel safely: \n\n" - "**1.** You tried to send a message longer than 2000 characters \n" - "• Try shortening your message to fit within the character limit or use a pasting service (see below) " - "\n\n**2.** You tried to show someone your code (no worries, we'd love to see it!)\n" - f"• Try using codeblocks (run `!code-blocks` in {cmd_channel.mention}) or use a pasting service \n\n" - f"If you would like, here is a pasting service we like to use: {URLs.site_schema}{URLs.site_paste}" + "• If you attempted to send a message longer than 2000 characters, try shortening your message " + "to fit within the character limit or use a pasting service (see below) \n\n" + "• If you tried to show someone your code, you can use codeblocks \n(run `!code-blocks` in " + f"{cmd_channel.mention} for more information) or use a pasting service like: " + f"\n\n{URLs.site_schema}{URLs.site_paste}" ) elif extensions_blocked: whitelisted_types = ', '.join(AntiMalwareConfig.whitelist) |