Fixed syntax error
This commit is contained in:
parent
42090a39f6
commit
2d9c2a8e87
1 changed files with 1 additions and 1 deletions
|
@ -251,7 +251,7 @@ class Core:
|
||||||
await self.bot.say("No results with that image {}".format(ctx.message.author.mention))
|
await self.bot.say("No results with that image {}".format(ctx.message.author.mention))
|
||||||
return
|
return
|
||||||
elif len(data) == 1:
|
elif len(data) == 1:
|
||||||
rand_image data[0]['file_url']
|
rand_image = data[0]['file_url']
|
||||||
else:
|
else:
|
||||||
rand_image = data[random.randint(0, len(data)-1)]['file_url']
|
rand_image = data[random.randint(0, len(data)-1)]['file_url']
|
||||||
await self.bot.say(rand_image)
|
await self.bot.say(rand_image)
|
||||||
|
|
Loading…
Reference in a new issue