mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-19 18:16:34 +01:00
Update sherlock command
This commit is contained in:
parent
210709acad
commit
4ea0c6817c
1 changed files with 1 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue