diff options
author | 2019-03-15 18:29:35 +0100 | |
---|---|---|
committer | 2019-03-15 18:29:35 +0100 | |
commit | c4b48c8d343a2cf9fb55ba1616e65deccdc3ea0d (patch) | |
tree | 5d0cd201595a4e97d5a07e5076ef0245d5fd6309 /bot | |
parent | Merge pull request #138 from python-discord/docker-fix (diff) | |
parent | Requested Changes (diff) |
Merge pull request #140 from Suhail6inkling/pickup-lines
Pickup Lines
Diffstat (limited to 'bot')
-rw-r--r-- | bot/resources/valentines/pickup_lines.json | 97 | ||||
-rw-r--r-- | bot/seasons/valentines/pickuplines.py | 44 |
2 files changed, 141 insertions, 0 deletions
diff --git a/bot/resources/valentines/pickup_lines.json b/bot/resources/valentines/pickup_lines.json new file mode 100644 index 00000000..a18d0840 --- /dev/null +++ b/bot/resources/valentines/pickup_lines.json @@ -0,0 +1,97 @@ +{ + "placeholder": "https://i.imgur.com/BB52sxj.jpg", + "lines": [ + { + "line": "Hey baby are you allergic to dairy cause I **laktose** clothes you're wearing", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Cheese_%281105942243%29.jpg/800px-Cheese_%281105942243%29.jpg" + }, + { + "line": "I’m not a photographer, but I can **picture** me and you together.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/5/57/2016_Minolta_Dynax_404si.JPG/220px-2016_Minolta_Dynax_404si.JPG" + }, + { + "line": "I seem to have lost my phone number. Can I have yours?" + }, + { + "line": "Are you French? Because **Eiffel** for you.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/85/Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg/240px-Tour_Eiffel_Wikimedia_Commons_%28cropped%29.jpg" + }, + { + "line": "Hey babe are you a cat? Because I'm **feline** a connection between us.", + "image": "https://upload.wikimedia.org/wikipedia/commons/4/4d/Cat_November_2010-1a.jpg" + }, + { + "line": "Baby, life without you is like a broken pencil... **pointless**.", + "image": "https://upload.wikimedia.org/wikipedia/commons/0/08/Pencils_hb.jpg" + }, + { + "line": "Babe did it hurt when you fell from heaven?" + }, + { + "line": "If I could rearrange the alphabet, I would put **U** and **I** together.", + "image": "https://images-na.ssl-images-amazon.com/images/I/51wJaFX%2BnGL._SX425_.jpg" + }, + { + "line": "Is your name Google? Because you're everything I'm searching for.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/5/53/Google_%22G%22_Logo.svg/1024px-Google_%22G%22_Logo.svg.png" + }, + { + "line": "Are you from Starbucks? Because I like you a **latte**.", + "image": "https://upload.wikimedia.org/wikipedia/en/thumb/d/d3/Starbucks_Corporation_Logo_2011.svg/1200px-Starbucks_Corporation_Logo_2011.svg.png" + }, + { + "line": "Are you a banana? Because I find you **a peeling**.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Bananas_white_background_DS.jpg/220px-Bananas_white_background_DS.jpg" + }, + { + "line": "Do you like vegetables because I love you from my head **tomatoes**.", + "image": "https://vignette.wikia.nocookie.net/veggietales-the-ultimate-veggiepedia/images/e/ec/Bobprofile.jpg/revision/latest?cb=20161227190344" + }, + { + "line": "Do you like science because I've got my **ion** you.", + "image": "https://www.chromacademy.com/lms/sco101/assets/c1_010_equations.jpg" + }, + { + "line": "Are you an angle? Because you are **acute**.", + "image": "https://juicebubble.co.za/wp-content/uploads/2018/03/acute-angle-white-400x400.png" + }, + { + "line": "If you were a fruit, you'd be a **fineapple**." + }, + { + "line": "Did you swallow magnets? Cause you're **attractive**.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Magnetic_quadrupole_moment.svg/1200px-Magnetic_quadrupole_moment.svg.png" + }, + { + "line": "Hey pretty thang, do you have a name or can I call you mine?" + }, + { + "line": "Is your name Wi-Fi? Because I'm feeling a connection.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/a/ae/WiFi_Logo.svg/1200px-WiFi_Logo.svg.png" + }, + { + "line": "Are you Australian? Because you meet all of my **koala**fications.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Koala_climbing_tree.jpg/240px-Koala_climbing_tree.jpg" + }, + { + "line": "If I were a cat I'd spend all 9 lives with you.", + "image": "https://upload.wikimedia.org/wikipedia/commons/4/4d/Cat_November_2010-1a.jpg" + }, + { + "line": "My love for you is like dividing by 0. It's undefinable.", + "image": "https://i.pinimg.com/originals/05/f5/9a/05f59a9fa44689e3435b5e46937544bb.png" + }, + { + "line": "Take away gravity, I'll still fall for you.", + "image": "https://i.pinimg.com/originals/05/f5/9a/05f59a9fa44689e3435b5e46937544bb.png" + }, + { + "line": "Are you a criminal? Because you just stole my heart.", + "image": "https://upload.wikimedia.org/wikipedia/commons/thumb/9/98/Hinged_Handcuffs_Rear_Back_To_Back.JPG/174px-Hinged_Handcuffs_Rear_Back_To_Back.JPG" + }, + { + "line": "Hey babe I'm here. What were your other two wishes?", + "image": "https://upload.wikimedia.org/wikipedia/en/thumb/0/0c/The_Genie_Aladdin.png/220px-The_Genie_Aladdin.png" + } + ] +}
\ No newline at end of file diff --git a/bot/seasons/valentines/pickuplines.py b/bot/seasons/valentines/pickuplines.py new file mode 100644 index 00000000..4462478f --- /dev/null +++ b/bot/seasons/valentines/pickuplines.py @@ -0,0 +1,44 @@ +import logging +import random +from json import load +from pathlib import Path + +import discord +from discord.ext import commands + +from bot.constants import Colours + +log = logging.getLogger(__name__) + +with open(Path('bot', 'resources', 'valentines', 'pickup_lines.json'), 'r', encoding="utf8") as f: + pickup_lines = load(f) + + +class PickupLine: + """ + A cog that gives random cheesy pickup lines. + """ + + def __init__(self, bot): + self.bot = bot + + @commands.command() + async def pickupline(self, ctx): + """ + 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.add_cog(PickupLine(bot)) + log.info('Pickup line cog loaded') |