Merge pull request #150 from bobloy/lovecalc_image

Get love image right (when cert is fixed)
decrypt_initial
bobloy 4 years ago committed by GitHub
commit ffbed8cb9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -60,14 +60,11 @@ 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, color=discord.Color.red(), url=url
description=result_text,
color=discord.Color.red(),
url=f"https://www.lovecalculator.com/{result_image}",
) )
em.set_image(url=f"https://www.lovecalculator.com/{result_image}")
await ctx.send(embed=em) await ctx.send(embed=em)

Loading…
Cancel
Save