aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/halloweenify.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2019-09-30 14:48:49 +0200
committerGravatar GitHub <[email protected]>2019-09-30 14:48:49 +0200
commit6120f9d90272cab33aa1da857dbfaeb1b5adbd9a (patch)
tree740c8bd789e24ca22913caad26bcd5897cd6d270 /bot/seasons/halloween/halloweenify.py
parentEdit dates (diff)
parentMerge pull request #276 from python-discord/update-flake8-annotations (diff)
Merge branch 'master' into date-fix
Diffstat (limited to 'bot/seasons/halloween/halloweenify.py')
-rw-r--r--bot/seasons/halloween/halloweenify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/halloween/halloweenify.py b/bot/seasons/halloween/halloweenify.py
index 334781ab..dfcc2b1e 100644
--- a/bot/seasons/halloween/halloweenify.py
+++ b/bot/seasons/halloween/halloweenify.py
@@ -13,12 +13,12 @@ log = logging.getLogger(__name__)
class Halloweenify(commands.Cog):
"""A cog to change a invokers nickname to a spooky one!"""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.cooldown(1, 300, BucketType.user)
@commands.command()
- async def halloweenify(self, ctx):
+ async def halloweenify(self, ctx: commands.Context) -> None:
"""Change your nickname into a much spookier one!"""
async with ctx.typing():
with open(Path("bot/resources/halloween/halloweenify.json"), "r") as f:
@@ -46,7 +46,7 @@ class Halloweenify(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Halloweenify Cog load."""
bot.add_cog(Halloweenify(bot))
log.info("Halloweenify cog loaded")