From 230e3e8378594a7fd880caec7c569b8d705b2d2b Mon Sep 17 00:00:00 2001 From: nex Date: Sat, 3 Jun 2023 15:10:31 +0100 Subject: [PATCH] Update sherlock command? --- cogs/other.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cogs/other.py b/cogs/other.py index ea39cad..bf8e6c7 100644 --- a/cogs/other.py +++ b/cogs/other.py @@ -1619,17 +1619,16 @@ class OtherCog(commands.Cog): else: desc = f"```ansi\n{stdout}```" title = "Results" + print(glob.glob(f"{tempdir}/*")) + files = list(map(discord.File, glob.glob(f"{tempdir}/*"))) await ctx.edit( + files=files, embed=discord.Embed( title=title, description=desc, colour=discord.Colour.green(), ), ) - print(glob.glob(f"{tempdir}/*")) - files = list(map(discord.File, glob.glob(f"{tempdir}/*"))) - if files: - await ctx.respond(files=files) def setup(bot):