aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/halloween/spookyrating.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/seasons/halloween/spookyrating.py')
-rw-r--r--bot/seasons/halloween/spookyrating.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/halloween/spookyrating.py b/bot/seasons/halloween/spookyrating.py
index a436e39d..7f78f536 100644
--- a/bot/seasons/halloween/spookyrating.py
+++ b/bot/seasons/halloween/spookyrating.py
@@ -19,13 +19,13 @@ with Path("bot/resources/halloween/spooky_rating.json").open() as file:
class SpookyRating(commands.Cog):
"""A cog for calculating one's spooky rating."""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
self.local_random = random.Random()
@commands.command()
@commands.cooldown(rate=1, per=5, type=commands.BucketType.user)
- async def spookyrating(self, ctx, who: discord.Member = None):
+ async def spookyrating(self, ctx: commands.Context, who: discord.Member = None) -> None:
"""
Calculates the spooky rating of someone.
@@ -61,7 +61,7 @@ class SpookyRating(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Spooky Rating Cog load."""
bot.add_cog(SpookyRating(bot))
log.info("SpookyRating cog loaded")