diff options
author | 2021-09-03 16:28:04 +0100 | |
---|---|---|
committer | 2021-09-03 16:28:04 +0100 | |
commit | cd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch) | |
tree | 4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/exts/evergreen/xkcd.py | |
parent | Handle status not found with 404 picture (diff) | |
parent | Merge pull request #839 from python-discord/android-codeblock-fix (diff) |
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/exts/evergreen/xkcd.py')
-rw-r--r-- | bot/exts/evergreen/xkcd.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/xkcd.py b/bot/exts/evergreen/xkcd.py index c98830bc..b56c53d9 100644 --- a/bot/exts/evergreen/xkcd.py +++ b/bot/exts/evergreen/xkcd.py @@ -1,7 +1,7 @@ import logging import re from random import randint -from typing import Dict, Optional, Union +from typing import Optional, Union from discord import Embed from discord.ext import tasks @@ -19,9 +19,9 @@ BASE_URL = "https://xkcd.com" class XKCD(Cog): """Retrieving XKCD comics.""" - def __init__(self, bot: Bot) -> None: + def __init__(self, bot: Bot): self.bot = bot - self.latest_comic_info: Dict[str, Union[str, int]] = {} + self.latest_comic_info: dict[str, Union[str, int]] = {} self.get_latest_comic_info.start() def cog_unload(self) -> None: |