diff options
| -rw-r--r-- | bot/cogs/snekbox.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bot/cogs/snekbox.py b/bot/cogs/snekbox.py index 167e0aed6..17acf757b 100644 --- a/bot/cogs/snekbox.py +++ b/bot/cogs/snekbox.py @@ -79,6 +79,9 @@ class Snekbox: log.info(f"Received code from {ctx.author.name}#{ctx.author.discriminator} for evaluation:\n{code}") self.jobs[ctx.author.id] = datetime.datetime.now() + while code.startswith("\n"): + code = code[1:] + if code.startswith("```") and code.endswith("```"): code = code[3:-3] |