diff options
Diffstat (limited to 'bot/seasons/halloween/halloweenify.py')
| -rw-r--r-- | bot/seasons/halloween/halloweenify.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/bot/seasons/halloween/halloweenify.py b/bot/seasons/halloween/halloweenify.py index 0d6964a5..daf64ac0 100644 --- a/bot/seasons/halloween/halloweenify.py +++ b/bot/seasons/halloween/halloweenify.py @@ -10,10 +10,8 @@ from discord.ext.commands.cooldowns import BucketType log = logging.getLogger(__name__) -class Halloweenify(commands.Cog): - """ - A cog to change a invokers nickname to a spooky one! - """ +class Halloweenify: + """A cog to change a invokers nickname to a spooky one!""" def __init__(self, bot): self.bot = bot @@ -21,9 +19,8 @@ class Halloweenify(commands.Cog): @commands.cooldown(1, 300, BucketType.user) @commands.command() async def halloweenify(self, ctx): - """ - Change your nickname into a much spookier one! - """ + """Change your nickname into a much spookier one.""" + async with ctx.typing(): with open(Path('bot', 'resources', 'halloween', 'halloweenify.json'), 'r') as f: data = load(f) @@ -51,5 +48,7 @@ class Halloweenify(commands.Cog): def setup(bot): + """Halloweenify Cog load.""" + bot.add_cog(Halloweenify(bot)) log.info("Halloweenify cog loaded") |