Update sherlock command

This commit is contained in:
Nexus 2023-06-03 14:31:57 +01:00
parent 210709acad
commit 4ea0c6817c
Signed by: nex
GPG key ID: 0FA334385D0B689F

View file

@ -1548,10 +1548,6 @@ class OtherCog(commands.Cog):
description=f"Elapsed: {elapsed:.0f}s", description=f"Elapsed: {elapsed:.0f}s",
colour=discord.Colour.dark_theme() colour=discord.Colour.dark_theme()
) )
embed.add_field(
name="stdout",
value=f"```\n{stdout.decode('utf-8', 'replace')[:1000]}```"
)
await ctx.edit( await ctx.edit(
embed=embed embed=embed
) )
@ -1587,6 +1583,7 @@ class OtherCog(commands.Cog):
task = asyncio.create_task(background_task()) task = asyncio.create_task(background_task())
# Wait for it to finish # Wait for it to finish
stdout, stderr = await result.communicate() stdout, stderr = await result.communicate()
await result.wait()
task.cancel() task.cancel()
# wait for task to exit # wait for task to exit
try: try: