From 369f44aeddbc1dbc69a70be28f0586e5bbfad0bb Mon Sep 17 00:00:00 2001 From: RGBCube Date: Fri, 3 Feb 2023 23:11:56 +0300 Subject: [PATCH] Fix --- v_repl_bot/cogs/playground.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/v_repl_bot/cogs/playground.py b/v_repl_bot/cogs/playground.py index d255559..b24f3f9 100644 --- a/v_repl_bot/cogs/playground.py +++ b/v_repl_bot/cogs/playground.py @@ -28,7 +28,7 @@ class Playground( async def get_code(self, ctx: Context, query: str) -> str: async with await self.bot.session.post( f"https://play.vlang.io/query", - data = { "hash": query } + data = { "hash": query.removesuffix(">") } ) as response: text = await response.text() @@ -116,7 +116,6 @@ class Playground( content = await self.get_message_content(ctx.channel, ref) if query := self.grep_link_query(content): - print(query) code = await self.get_code(ctx, query) else: code = self.grep_code(content)