aboutsummaryrefslogtreecommitdiffstats
path: root/bot/seasons/valentines/pickuplines.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-05-11 04:51:30 +1000
committerGravatar GitHub <[email protected]>2019-05-11 04:51:30 +1000
commit0e2c6a1b0daef5b569da7652801b5725bf1ed95b (patch)
treec3d57e50f2ba07cb2d9e7476d3b9441c1f671bd9 /bot/seasons/valentines/pickuplines.py
parentnot importing aiohttp now (diff)
parentMerge pull request #198 from Suhail6inkling/constants_fix (diff)
Merge branch 'master' into hanukkah_embed_iceman
Diffstat (limited to 'bot/seasons/valentines/pickuplines.py')
-rw-r--r--bot/seasons/valentines/pickuplines.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/bot/seasons/valentines/pickuplines.py b/bot/seasons/valentines/pickuplines.py
index e1abb4e5..ad75c93f 100644
--- a/bot/seasons/valentines/pickuplines.py
+++ b/bot/seasons/valentines/pickuplines.py
@@ -15,9 +15,7 @@ with open(Path('bot', 'resources', 'valentines', 'pickup_lines.json'), 'r', enco
class PickupLine(commands.Cog):
- """
- A cog that gives random cheesy pickup lines.
- """
+ """A cog that gives random cheesy pickup lines."""
def __init__(self, bot):
self.bot = bot
@@ -25,8 +23,11 @@ class PickupLine(commands.Cog):
@commands.command()
async def pickupline(self, ctx):
"""
- Gives you a random pickup line. Note that most of them are very cheesy!
+ 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:',
@@ -40,5 +41,7 @@ class PickupLine(commands.Cog):
def setup(bot):
+ """Pickup lines Cog load."""
+
bot.add_cog(PickupLine(bot))
log.info('PickupLine cog loaded')