From 5916f3470cbf46f1db74ad5dcf29668c053b87da Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 3 May 2018 12:50:54 -0800 Subject: [PATCH] Add notifications to ISS image creation --- exts/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/exts/utils.py b/exts/utils.py index 5916075..b9964e8 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -558,7 +558,8 @@ class Utils: msg = await ctx.send('Got location. Generating Image...') output = await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc) await msg.edit(content='Image Created. Uploading to Discord...') - await msg.edit(content='Current ISS Location', file=discord.File(output, 'output.png')) + await msg.delete() + await ctx.send('Current ISS Location', file=discord.File(output, 'output.png')) # TODO Create Help command