mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +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",
|
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:
|
||||||
|
|
Loading…
Reference in a new issue