aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/xkcd.py
diff options
context:
space:
mode:
authorGravatar Kieran Siek <[email protected]>2021-06-03 15:58:05 +0800
committerGravatar GitHub <[email protected]>2021-06-03 15:58:05 +0800
commitb60fd23bae52fb59eed0bf29aef2516234d1c858 (patch)
tree0ed0f44d590e8e4891b2f1ab142b10b48fae2763 /bot/exts/evergreen/xkcd.py
parentMake `setup` docstring same as other cogs (diff)
parentAdded "centisecond" in trivia_quiz.json (#751) (diff)
Merge branch 'main' into feature/pride-leaders
Diffstat (limited to 'bot/exts/evergreen/xkcd.py')
-rw-r--r--bot/exts/evergreen/xkcd.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/xkcd.py b/bot/exts/evergreen/xkcd.py
index 1ff98ca2..c98830bc 100644
--- a/bot/exts/evergreen/xkcd.py
+++ b/bot/exts/evergreen/xkcd.py
@@ -53,7 +53,7 @@ class XKCD(Cog):
await ctx.send(embed=embed)
return
- comic = randint(1, self.latest_comic_info['num']) if comic is None else comic.group(0)
+ comic = randint(1, self.latest_comic_info["num"]) if comic is None else comic.group(0)
if comic == "latest":
info = self.latest_comic_info
@@ -69,7 +69,7 @@ class XKCD(Cog):
return
embed.title = f"XKCD comic #{info['num']}"
- embed.description = info['alt']
+ embed.description = info["alt"]
embed.url = f"{BASE_URL}/{info['num']}"
if info["img"][-3:] in ("jpg", "png", "gif"):
@@ -87,5 +87,5 @@ class XKCD(Cog):
def setup(bot: Bot) -> None:
- """Loading the XKCD cog."""
+ """Load the XKCD cog."""
bot.add_cog(XKCD(bot))