1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-07-24 23:17:44 +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 def get_code(self, ctx: Context, query: str) -> str:
async with await self.bot.session.post( async with await self.bot.session.post(
f"https://play.vlang.io/query", f"https://play.vlang.io/query",
data = { "hash": query } data = { "hash": query.removesuffix(">") }
) as response: ) as response:
text = await response.text() text = await response.text()
@ -116,7 +116,6 @@ class Playground(
content = await self.get_message_content(ctx.channel, ref) content = await self.get_message_content(ctx.channel, ref)
if query := self.grep_link_query(content): if query := self.grep_link_query(content):
print(query)
code = await self.get_code(ctx, query) code = await self.get_code(ctx, query)
else: else:
code = self.grep_code(content) code = self.grep_code(content)