aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/valentines/pickuplines.py
diff options
context:
space:
mode:
Diffstat (limited to 'bot/exts/valentines/pickuplines.py')
-rw-r--r--bot/exts/valentines/pickuplines.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/bot/exts/valentines/pickuplines.py b/bot/exts/valentines/pickuplines.py
index 74c7e68b..bb322016 100644
--- a/bot/exts/valentines/pickuplines.py
+++ b/bot/exts/valentines/pickuplines.py
@@ -6,6 +6,7 @@ from pathlib import Path
import discord
from discord.ext import commands
+from bot.bot import Bot
from bot.constants import Colours
log = logging.getLogger(__name__)
@@ -17,9 +18,6 @@ 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: commands.Bot):
- self.bot = bot
-
@commands.command()
async def pickupline(self, ctx: commands.Context) -> None:
"""
@@ -39,6 +37,6 @@ class PickupLine(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Pickup lines Cog load."""
- bot.add_cog(PickupLine(bot))
+ bot.add_cog(PickupLine())