Add notifications to ISS image creation
This commit is contained in:
parent
5916f3470c
commit
dcc61f6546
@ -558,8 +558,8 @@ class Utils:
|
|||||||
msg = await ctx.send('Got location. Generating Image...')
|
msg = await ctx.send('Got location. Generating Image...')
|
||||||
output = await self.bot.loop.run_in_executor(self.bot.tpe, gen_image, loc)
|
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='Image Created. Uploading to Discord...')
|
||||||
await msg.delete()
|
|
||||||
await ctx.send('Current ISS Location', file=discord.File(output, 'output.png'))
|
await ctx.send('Current ISS Location', file=discord.File(output, 'output.png'))
|
||||||
|
await msg.delete()
|
||||||
|
|
||||||
# TODO Create Help command
|
# TODO Create Help command
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user