parent
e134d027e4
commit
51c147c2c0
1 changed files with 2 additions and 1 deletions
3
cc/xkcd
3
cc/xkcd
|
@ -13,7 +13,8 @@ else:
|
||||||
print("Comic not found.")
|
print("Comic not found.")
|
||||||
elif req.ok:
|
elif req.ok:
|
||||||
title = req.json()["title"]
|
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:
|
else:
|
||||||
print("Couldn't fetch: status code {req.status_code}")
|
print("Couldn't fetch: status code {req.status_code}")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue