diff options
| author | 2018-06-27 14:27:15 +0100 | |
|---|---|---|
| committer | 2018-06-27 14:27:15 +0100 | |
| commit | 403c1ea6df61d795a4772a9e6352ddcf9c535b85 (patch) | |
| tree | 60f23200d966ad40f344e77d8f09969798bc06e6 | |
| parent | [Snekbox] Add line numbers and truncation (diff) | |
[Snekbox] Truncation that takes backticks into account
| -rw-r--r-- | bot/cogs/snekbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py index 7526c8bb7..60b87a85e 100644 --- a/bot/cogs/snekbox.py +++ b/bot/cogs/snekbox.py @@ -65,7 +65,7 @@ class Snekbox: output = [f"{i} | {line}" for i, line in enumerate(output.split("\n"), start=1)] output = "\n".join(output) - if len(output) >= 2048: + if len(output) >= 2040: output = f"{output[:2000]}... (truncated)" embed = Embed(description=f"```{output}```", title="Code evaluation", colour=colour) |