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