mirror of
https://github.com/RGBCube/VReplBot
synced 2025-07-24 23:17:44 +00:00
Fix
This commit is contained in:
parent
08cab8ba59
commit
369f44aedd
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue