From ab760af838573856ff09e00ef00f2b8f040def1f Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 3 May 2018 12:48:36 -0800 Subject: [PATCH] Add notifications to ISS image creation --- exts/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/exts/utils.py b/exts/utils.py index 95ace08..5916075 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -555,8 +555,10 @@ class Utils: async with ctx.typing(): async with self.bot.aio_session.get('https://api.wheretheiss.at/v1/satellites/25544') as response: loc = await response.json() + msg = await ctx.send('Got location. Generating Image...') output = await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc) - await ctx.send(file=discord.File(output, 'output.png')) + await msg.edit(content='Image Created. Uploading to Discord...') + await msg.edit(content='Current ISS Location', file=discord.File(output, 'output.png')) # TODO Create Help command