Get love image right (when cert is fixed)

pull/150/head
bobloy 4 years ago
parent 9440f34669
commit 479b23f0f3

@ -60,14 +60,14 @@ class LoveCalculator(Cog):
else: else:
emoji = "💔" emoji = "💔"
title = f"Dr. Love says that the love percentage for {x} and {y} is: {emoji} {description} {emoji}" title = f"Dr. Love says that the love percentage for {x} and {y} is: {emoji} {description} {emoji}"
except: except (TypeError, ValueError):
title = "Dr. Love has left a note for you." title = "Dr. Love has left a note for you."
em = discord.Embed( em = discord.Embed(
title=title, title=title,
description=result_text, description=result_text,
color=discord.Color.red(), color=discord.Color.red(),
url=f"https://www.lovecalculator.com/{result_image}", url=url
) )
em.set_image(url=f"https://www.lovecalculator.com/{result_image}")
await ctx.send(embed=em) await ctx.send(embed=em)

Loading…
Cancel
Save