diff options
author | 2020-09-21 20:32:15 +0200 | |
---|---|---|
committer | 2020-09-21 20:32:15 +0200 | |
commit | 1051877d921eb9542ae845e3463aa2eadb5257a8 (patch) | |
tree | 621a0d6375fefcd7cf3879b3ba34949063db828e | |
parent | Merge pull request #1103 from python-discord/feat/backend/160/cog-subdirs (diff) |
Upload output with codeblock escapes to pastebin
The output can't be sent to discord, but it won't affect anything in the
paste service and can safely be uploaded to it.
-rw-r--r-- | bot/exts/utils/snekbox.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/utils/snekbox.py b/bot/exts/utils/snekbox.py index 03bf454ac..b3baffba2 100644 --- a/bot/exts/utils/snekbox.py +++ b/bot/exts/utils/snekbox.py @@ -150,6 +150,7 @@ class Snekbox(Cog): output = output.replace("<!@", "<!@\u200B") # Zero-width space if ESCAPE_REGEX.findall(output): + paste_link = await self.upload_output(original_output) return "Code block escape attempt detected; will not output result", paste_link truncated = False |