diff options
author | 2020-07-11 10:39:01 -0700 | |
---|---|---|
committer | 2020-07-11 10:39:01 -0700 | |
commit | 4c219ac7f616ef008b8deafc49819ab733d1fe4a (patch) | |
tree | 060e1ac728dcb1a9a89596ac75a506d2a7f724a6 | |
parent | Created the statuscat command. (diff) |
Fixed importing and context argument annotation.
-rw-r--r-- | bot/exts/evergreen/status_cats.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/status_cats.py b/bot/exts/evergreen/status_cats.py index e28b0213..900f0ad6 100644 --- a/bot/exts/evergreen/status_cats.py +++ b/bot/exts/evergreen/status_cats.py @@ -1,8 +1,8 @@ import logging - -from discord.ext import commands from http import HTTPStatus + import discord +from discord.ext import commands log = logging.getLogger(__name__) @@ -14,7 +14,7 @@ class StatusCats(commands.Cog): self.bot = bot @commands.command(aliases=['statuscat']) - async def http_cat(self, ctx, code: int) -> None: + async def http_cat(self, ctx: commands.Context, code: int) -> None: """Sends an embed with an image of a cat, potraying the status code.""" embed = discord.Embed(title=f'**Status: {code}**') embed.set_image(url=f'https://http.cat/{code}.jpg') |