1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Fixed syntax error

This commit is contained in:
Phxntxm 2016-07-21 07:32:53 -05:00
parent 42090a39f6
commit 2d9c2a8e87

View file

@ -251,7 +251,7 @@ class Core:
await self.bot.say("No results with that image {}".format(ctx.message.author.mention))
return
elif len(data) == 1:
rand_image data[0]['file_url']
rand_image = data[0]['file_url']
else:
rand_image = data[random.randint(0, len(data)-1)]['file_url']
await self.bot.say(rand_image)