From 4ea0c6817ca468668a4cd1399a1cad62c9fad1bf Mon Sep 17 00:00:00 2001 From: nex Date: Sat, 3 Jun 2023 14:31:57 +0100 Subject: [PATCH] Update sherlock command --- cogs/other.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index e83e03d..b8198d4 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1548,10 +1548,6 @@ class OtherCog(commands.Cog): description=f"Elapsed: {elapsed:.0f}s", colour=discord.Colour.dark_theme() ) - embed.add_field( - name="stdout", - value=f"```\n{stdout.decode('utf-8', 'replace')[:1000]}```" - ) await ctx.edit( embed=embed ) @@ -1587,6 +1583,7 @@ class OtherCog(commands.Cog): task = asyncio.create_task(background_task()) # Wait for it to finish stdout, stderr = await result.communicate() + await result.wait() task.cancel() # wait for task to exit try: