aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MrKomodoDragon <[email protected]>2021-02-13 11:03:14 -0800
committerGravatar MrKomodoDragon <[email protected]>2021-02-13 11:03:14 -0800
commit8bc6f497d01d6b848ba868f4ac662100cdee48d3 (patch)
tree691c979ed6853d11f97ab696d4d40b8278be0a6c
parentMerge pull request #575 from Shivansh-007/fix/be-my-valentine (diff)
Added description and url to embed of xkcd command
-rw-r--r--bot/exts/evergreen/xkcd.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bot/exts/evergreen/xkcd.py b/bot/exts/evergreen/xkcd.py
index d3224bfe..43f05864 100644
--- a/bot/exts/evergreen/xkcd.py
+++ b/bot/exts/evergreen/xkcd.py
@@ -69,6 +69,8 @@ class XKCD(Cog):
return
embed.title = f"XKCD comic #{info['num']}"
+ embed.description = info['alt']
+ embed.url = f"{BASE_URL}/{comic}"
if info["img"][-3:] in ("jpg", "png", "gif"):
embed.set_image(url=info["img"])