diff options
author | 2021-05-17 12:50:04 -0500 | |
---|---|---|
committer | 2021-05-17 12:50:04 -0500 | |
commit | a174b78114d4204e74e11a820ddf36f00d293112 (patch) | |
tree | 9404dbf50e3f11c7c83b782733aa30d7d15fcae2 /bot/exts/evergreen/catify.py | |
parent | Remove comments and update docstrings (diff) | |
parent | Merge pull request #726 from Objectivitix/main (diff) |
Merge branch 'main' into http_status_command_randomness
Diffstat (limited to 'bot/exts/evergreen/catify.py')
-rw-r--r-- | bot/exts/evergreen/catify.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bot/exts/evergreen/catify.py b/bot/exts/evergreen/catify.py index a175602f..32dfae09 100644 --- a/bot/exts/evergreen/catify.py +++ b/bot/exts/evergreen/catify.py @@ -5,6 +5,7 @@ from typing import Optional from discord import AllowedMentions, Embed, Forbidden from discord.ext import commands +from bot.bot import Bot from bot.constants import Cats, Colours, NEGATIVE_REPLIES from bot.utils import helpers @@ -12,10 +13,7 @@ from bot.utils import helpers class Catify(commands.Cog): """Cog for the catify command.""" - def __init__(self, bot: commands.Bot): - self.bot = bot - - @commands.command(aliases=["ᓚᘏᗢify", "ᓚᘏᗢ"]) + @commands.command(aliases=("ᓚᘏᗢify", "ᓚᘏᗢ")) @commands.cooldown(1, 5, commands.BucketType.user) async def catify(self, ctx: commands.Context, *, text: Optional[str]) -> None: """ @@ -83,6 +81,6 @@ class Catify(commands.Cog): ) -def setup(bot: commands.Bot) -> None: +def setup(bot: Bot) -> None: """Loads the catify cog.""" - bot.add_cog(Catify(bot)) + bot.add_cog(Catify()) |