aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/status_cats.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2021-03-08 20:54:24 +1000
committerGravatar GitHub <[email protected]>2021-03-08 20:54:24 +1000
commitd21f4870506c97c3120b18cda6a50610022bc134 (patch)
tree661c2a11d2b4d0e262f2b084e659f2d8521cbea5 /bot/exts/evergreen/status_cats.py
parentImprove punctuation and wording of .emoji count. (diff)
parentMerge pull request #598 from Arez1337/trivia (diff)
Merge branch 'master' into master
Diffstat (limited to 'bot/exts/evergreen/status_cats.py')
-rw-r--r--bot/exts/evergreen/status_cats.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/bot/exts/evergreen/status_cats.py b/bot/exts/evergreen/status_cats.py
deleted file mode 100644
index 586b8378..00000000
--- a/bot/exts/evergreen/status_cats.py
+++ /dev/null
@@ -1,33 +0,0 @@
-from http import HTTPStatus
-
-import discord
-from discord.ext import commands
-
-
-class StatusCats(commands.Cog):
- """Commands that give HTTP statuses described and visualized by cats."""
-
- def __init__(self, bot: commands.Bot):
- self.bot = bot
-
- @commands.command(aliases=['statuscat'])
- 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}**')
-
- try:
- HTTPStatus(code)
-
- except ValueError:
- embed.set_footer(text='Inputted status code does not exist.')
-
- else:
- embed.set_image(url=f'https://http.cat/{code}.jpg')
-
- finally:
- await ctx.send(embed=embed)
-
-
-def setup(bot: commands.Bot) -> None:
- """Load the StatusCats cog."""
- bot.add_cog(StatusCats(bot))