1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-05-31 13:18:12 +00:00
This commit is contained in:
RGBCube 2023-02-03 23:11:56 +03:00
parent 08cab8ba59
commit 369f44aedd

View file

@ -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)