Moved generating iss image to tpe
This commit is contained in:
parent
c052248cfe
commit
7fa35bf478
@ -554,7 +554,7 @@ class Utils:
|
|||||||
async with ctx.typing():
|
async with ctx.typing():
|
||||||
async with self.bot.aio_session.get('https://api.wheretheiss.at/v1/satellites/25544') as response:
|
async with self.bot.aio_session.get('https://api.wheretheiss.at/v1/satellites/25544') as response:
|
||||||
loc = await response.json()
|
loc = await response.json()
|
||||||
async with self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc) as output:
|
output = await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc)
|
||||||
await ctx.send(file=discord.File(output, 'output.png'))
|
await ctx.send(file=discord.File(output, 'output.png'))
|
||||||
|
|
||||||
# TODO Create Help command
|
# TODO Create Help command
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user