1
0
Fork 0
mirror of synced 2024-05-20 04:22:29 +12:00

Animal Image Fetch 2/4

This commit is contained in:
MahxieNoodle 2019-10-31 03:17:23 -06:00
parent 08497feee6
commit f39e7d7efb

View file

@ -65,7 +65,7 @@ class Images(commands.Cog):
return
image = await utils.download_image(filename)
filename = re.search('.*/snakes/(.*)', filename).group(1)
filename = re.search('.*/optimized/large/(.*)', filename).group(1)
f = discord.File(image, filename=filename)
await ctx.send(file=f)
@ -87,7 +87,7 @@ class Images(commands.Cog):
return
image = await utils.download_image(filename)
filename = re.search('.*/horses/(.*)', filename).group(1)
filename = re.search('.*/optimized/large/(.*)', filename).group(1)
f = discord.File(image, filename=filename)
await ctx.send(file=f)