From c7b05bcf2c887f22fd3d796076daa45c6c417520 Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 3 Feb 2023 23:02:56 +0300 Subject: [PATCH] cursed code --- v_repl_bot/cogs/playground.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/v_repl_bot/cogs/playground.py b/v_repl_bot/cogs/playground.py index a991373..eaa0885 100644 --- a/v_repl_bot/cogs/playground.py +++ b/v_repl_bot/cogs/playground.py @@ -73,7 +73,8 @@ class Playground( @staticmethod def grep_code(content: str) -> str: - content = "`" + content.split("`", 1)[1].rsplit("`", 1)[0] + "`" + content = "`" + (splitted := content.split("`", 1))[len(splitted) - 1].rsplit("`", 1)[ + 0] + "`" return codeblock_converter(content).content