diff options
author | 2021-04-11 14:16:43 -0400 | |
---|---|---|
committer | 2021-04-11 14:16:43 -0400 | |
commit | 652f428347d2108d6c70df28c8c8130545ab9029 (patch) | |
tree | 63c8b6d04b2f3d52ac53fa2043e0201b9875019b | |
parent | Change command help format (diff) |
Ensure output will be robust for discord markdown
Added in an extra `\n` at the end of the output. Sometimes discord won't
properly format the codeblock in the triple ` is not on a newline.
This changes ensures that it should.
-rw-r--r-- | bot/exts/internal_eval/_internal_eval.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/internal_eval/_internal_eval.py b/bot/exts/internal_eval/_internal_eval.py index 06626b69..a62a7899 100644 --- a/bot/exts/internal_eval/_internal_eval.py +++ b/bot/exts/internal_eval/_internal_eval.py @@ -108,7 +108,7 @@ class InternalEval(commands.Cog): output = self.shorten_output(output) - await ctx.send(f"```py\n{output}```{upload_message}") + await ctx.send(f"```py\n{output}\n```{upload_message}") async def _eval(self, ctx: commands.Context, code: str) -> None: """Evaluate the `code` in the current evaluation context.""" |