diff options
| author | 2022-01-16 18:05:52 -0500 | |
|---|---|---|
| committer | 2022-01-16 15:05:52 -0800 | |
| commit | 7740f2ed3ce8678da1717d3e75d6a341555707f6 (patch) | |
| tree | 4d2006720c96fdff9c0037fc1fd9441dc4a0da8a | |
| parent | empty commit for CI (diff) | |
Shorten the `TXT_EMBED_DESCRIPTION` message (#2048)
| -rw-r--r-- | bot/exts/filters/antimalware.py | 10 | 
1 files changed, 2 insertions, 8 deletions
| diff --git a/bot/exts/filters/antimalware.py b/bot/exts/filters/antimalware.py index d727f7940..674ca6c8b 100644 --- a/bot/exts/filters/antimalware.py +++ b/bot/exts/filters/antimalware.py @@ -18,14 +18,8 @@ PY_EMBED_DESCRIPTION = (  TXT_LIKE_FILES = {".txt", ".csv", ".json"}  TXT_EMBED_DESCRIPTION = ( -    "**Uh-oh!** It looks like your message got zapped by our spam filter. " -    "We currently don't allow `{blocked_extension}` attachments, " -    "so here are some tips to help you travel safely: \n\n" -    "• 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 " -    "{cmd_channel_mention} for more information) or use a pasting service like: " -    f"\n\n{URLs.site_schema}{URLs.site_paste}" +    "You either uploaded a `{blocked_extension}` file or entered a message that was too long. " +    f"Please use our [{URLs.site_schema}{URLs.site_paste}](paste bin) instead."  )  DISALLOWED_EMBED_DESCRIPTION = ( | 
