1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-07-24 23:17:44 +00:00

debugging

This commit is contained in:
RGBCube 2023-01-31 20:34:10 +03:00
parent b787bb4fd9
commit ce76c1b251

View file

@ -49,10 +49,12 @@ class Playground(
content = await get_message_content(ctx.channel, reply) content = await get_message_content(ctx.channel, reply)
code = codeblock_converter(content) code = codeblock_converter(content)
print(code.content)
async with await self.bot.session.post( async with await self.bot.session.post(
f"https://play.vlang.io/{type}", f"https://play.vlang.io/{type}",
data = { "code": code.content }, data = { "code": code.content },
) as response: ) as response:
print(await response.text())
text = sanitize_str_for_codeblock(await response.text()) text = sanitize_str_for_codeblock(await response.text())
if len(text) + 6 > 2000: if len(text) + 6 > 2000: