From 7fa35bf4786d2e9843932bf6bb94cb315531a9fc Mon Sep 17 00:00:00 2001 From: Dustin Pianalto Date: Thu, 3 May 2018 12:38:44 -0800 Subject: [PATCH] Moved generating iss image to tpe --- exts/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exts/utils.py b/exts/utils.py index 6fbc4fa..2f70927 100644 --- a/exts/utils.py +++ b/exts/utils.py @@ -554,8 +554,8 @@ 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() - async with self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc) as output: - await ctx.send(file=discord.File(output, 'output.png')) + output = await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc) + await ctx.send(file=discord.File(output, 'output.png')) # TODO Create Help command