aboutsummaryrefslogtreecommitdiffstats
path: root/bot
diff options
context:
space:
mode:
authorGravatar ks129 <[email protected]>2021-02-13 22:21:32 +0200
committerGravatar GitHub <[email protected]>2021-02-13 22:21:32 +0200
commit13620a6461a78e43e8b16b9ad35691ff30622332 (patch)
tree87e1f218cd0750a8a631b77d9c2ee78247352e9c /bot
parentMerge pull request #575 from Shivansh-007/fix/be-my-valentine (diff)
parentFIxed error in which link would 404 if user did .xkcd latest (diff)
Merge pull request #590 from MrKomodoDragon/master
Added description and url to embed of xkcd command
Diffstat (limited to 'bot')
-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..1ff98ca2 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}/{info['num']}"
if info["img"][-3:] in ("jpg", "png", "gif"):
embed.set_image(url=info["img"])