1
Fork 0
mirror of https://github.com/RGBCube/VReplBot synced 2025-07-25 23:47:45 +00:00
This commit is contained in:
RGBCube 2023-02-03 23:10:31 +03:00
parent c7b05bcf2c
commit 08cab8ba59

View file

@ -116,6 +116,7 @@ class Playground(
content = await self.get_message_content(ctx.channel, ref)
if query := self.grep_link_query(content):
print(query)
code = await self.get_code(ctx, query)
else:
code = self.grep_code(content)
@ -181,12 +182,13 @@ class Playground(
query = self.grep_link_query(content)
if not query:
await ctx.reply("No query provided.")
return
else:
query = self.extract_link_query(query)
if not query:
await ctx.reply("No query provided.")
return
code = await self.get_code(ctx, query)
sanitized_code = self.sanitize(code)