From 8e0a156e64f18121a9f9ad0f983316f2b56f7a91 Mon Sep 17 00:00:00 2001 From: nex Date: Sat, 3 Jun 2023 14:51:33 +0100 Subject: [PATCH] Update sherlock command --- cogs/other.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index 2f3b4db..228b0d4 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1602,7 +1602,7 @@ class OtherCog(commands.Cog): pass # If it errored, send the error if result.returncode != 0: - return await ctx.respond( + return await ctx.edit( embed=discord.Embed( title="Error", description=f"```{stderr.decode()}```", @@ -1611,7 +1611,7 @@ class OtherCog(commands.Cog): ) # If it didn't error, send the results - await ctx.respond( + await ctx.edit( files=list(map(discord.File, glob.glob(f"{tempdir}/*.csv") + glob.glob(f"{tempdir}/*.txt"))), embed=discord.Embed( title="Results",