Update cc/xkcd

This commit is contained in:
Nova Cat 2025-03-21 22:40:00 -07:00
parent e134d027e4
commit 51c147c2c0

View file

@ -13,7 +13,8 @@ else:
print("Comic not found.")
elif req.ok:
title = req.json()["title"]
print(f"xkcd {e}: {title} (https://xkcd.com/{e})")
alt = req.json()["alt"]
print(f"xkcd {e}: {title} ⁜ {alt} ⁜ https://xkcd.com/{e}")
else:
print("Couldn't fetch: status code {req.status_code}")
else: