1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-05-31 05:08:11 +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)
code = codeblock_converter(content)
print(code.content)
async with await self.bot.session.post(
f"https://play.vlang.io/{type}",
data = { "code": code.content },
) as response:
print(await response.text())
text = sanitize_str_for_codeblock(await response.text())
if len(text) + 6 > 2000: