aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/valentines/pickuplines.py
diff options
context:
space:
mode:
authorGravatar Rohan_Iceman <[email protected]>2019-10-02 07:52:37 +0530
committerGravatar GitHub <[email protected]>2019-10-02 07:52:37 +0530
commitefc7a5146f922a0d70375355dfe84c9d7d63ff70 (patch)
treeb25310b56d008e0d5f05bc7d460a9640b69e7080 /bot/seasons/valentines/pickuplines.py
parentadded function annotations to the check method (diff)
parentPoint setup guide to site wiki (diff)
Merge branch 'master' into trivia_quiz
Diffstat (limited to 'bot/seasons/valentines/pickuplines.py')
-rw-r--r--bot/seasons/valentines/pickuplines.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/seasons/valentines/pickuplines.py b/bot/seasons/valentines/pickuplines.py
index 46772197..8b2c9822 100644
--- a/bot/seasons/valentines/pickuplines.py
+++ b/bot/seasons/valentines/pickuplines.py
@@ -17,11 +17,11 @@ with open(Path("bot/resources/valentines/pickup_lines.json"), "r", encoding="utf
class PickupLine(commands.Cog):
"""A cog that gives random cheesy pickup lines."""
- def __init__(self, bot):
+ def __init__(self, bot: commands.Bot):
self.bot = bot
@commands.command()
- async def pickupline(self, ctx):
+ async def pickupline(self, ctx: commands.Context) -> None:
"""
Gives you a random pickup line.
@@ -39,7 +39,7 @@ class PickupLine(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot):
+def setup(bot: commands.Bot) -> None:
"""Pickup lines Cog load."""
bot.add_cog(PickupLine(bot))
log.info('PickupLine cog loaded')