Merge pull request #150 from bobloy/lovecalc_image
Get love image right (when cert is fixed)
This commit is contained in:
commit
ffbed8cb9a
@ -60,14 +60,11 @@ class LoveCalculator(Cog):
|
||||
else:
|
||||
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."
|
||||
|
||||
em = discord.Embed(
|
||||
title=title,
|
||||
description=result_text,
|
||||
color=discord.Color.red(),
|
||||
url=f"https://www.lovecalculator.com/{result_image}",
|
||||
title=title, description=result_text, color=discord.Color.red(), url=url
|
||||
)
|
||||
|
||||
em.set_image(url=f"https://www.lovecalculator.com/{result_image}")
|
||||
await ctx.send(embed=em)
|
||||
|
Loading…
x
Reference in New Issue
Block a user