From 51c147c2c05edae1cc2d5455c16051d0f8d102d4 Mon Sep 17 00:00:00 2001 From: swee <meow@swee.codes> Date: Fri, 21 Mar 2025 22:40:00 -0700 Subject: [PATCH] Update cc/xkcd --- cc/xkcd | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cc/xkcd b/cc/xkcd index 1f42e22..9eaae3c 100644 --- a/cc/xkcd +++ b/cc/xkcd @@ -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: