aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/valentines/pickuplines.py
diff options
context:
space:
mode:
authorGravatar Janine vN <[email protected]>2021-09-04 23:35:00 -0400
committerGravatar Janine vN <[email protected]>2021-09-04 23:35:00 -0400
commit7ea66723f5f9c09e77e0b063002d4b222e7cc9d0 (patch)
treeb175e14bafcc80ce164eb10ea81ed33f67e78420 /bot/exts/valentines/pickuplines.py
parentMove Halloween to Holidays folder (diff)
Move Valentines to Holidays folder
Moves the valentine's day features to the holidays folders. Corrected the paths to reflect the folder moves.
Diffstat (limited to 'bot/exts/valentines/pickuplines.py')
-rw-r--r--bot/exts/valentines/pickuplines.py41
1 files changed, 0 insertions, 41 deletions
diff --git a/bot/exts/valentines/pickuplines.py b/bot/exts/valentines/pickuplines.py
deleted file mode 100644
index 00741a72..00000000
--- a/bot/exts/valentines/pickuplines.py
+++ /dev/null
@@ -1,41 +0,0 @@
-import logging
-import random
-from json import loads
-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__)
-
-PICKUP_LINES = loads(Path("bot/resources/valentines/pickup_lines.json").read_text("utf8"))
-
-
-class PickupLine(commands.Cog):
- """A cog that gives random cheesy pickup lines."""
-
- @commands.command()
- async def pickupline(self, ctx: commands.Context) -> None:
- """
- Gives you a random pickup line.
-
- Note that most of them are very cheesy.
- """
- random_line = random.choice(PICKUP_LINES["lines"])
- embed = discord.Embed(
- title=":cheese: Your pickup line :cheese:",
- description=random_line["line"],
- color=Colours.pink
- )
- embed.set_thumbnail(
- url=random_line.get("image", PICKUP_LINES["placeholder"])
- )
- await ctx.send(embed=embed)
-
-
-def setup(bot: Bot) -> None:
- """Load the Pickup lines Cog."""
- bot.add_cog(PickupLine())