aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_codes.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-20 15:46:30 -0400
committerGravatar ToxicKidz <[email protected]>2021-04-20 15:46:30 -0400
commitcda51f67c08df73951faa960858d72da281cfb74 (patch)
treec60925226262cbca2ccf6a3db139dff669aa2831 /bot/exts/evergreen/status_codes.py
parentClean Up Christmas Season (diff)
parentchore: ctx.channel.send -> ctx.send (diff)
Merge branch 'spring-cleanup' of https://github.com/ToxicKidz/sir-lancebot into spring-cleanup
Diffstat (limited to 'bot/exts/evergreen/status_codes.py')
-rw-r--r--bot/exts/evergreen/status_codes.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/status_codes.py b/bot/exts/evergreen/status_codes.py
index 7c00fe20..635eef3d 100644
--- a/bot/exts/evergreen/status_codes.py
+++ b/bot/exts/evergreen/status_codes.py
@@ -3,6 +3,7 @@ from http import HTTPStatus
import discord
from discord.ext import commands
+from bot.bot import Bot
from bot.utils.extensions import invoke_help_command
HTTP_DOG_URL = "https://httpstatusdogs.com/img/{code}.jpg"
@@ -12,7 +13,7 @@ HTTP_CAT_URL = "https://http.cat/{code}.jpg"
class HTTPStatusCodes(commands.Cog):
"""Commands that give HTTP statuses described and visualized by cats and dogs."""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@commands.group(name="http_status", aliases=("status", "httpstatus"))
@@ -68,6 +69,6 @@ class HTTPStatusCodes(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the HTTPStatusCodes cog."""
bot.add_cog(HTTPStatusCodes(bot))