diff options
| author | 2019-03-19 14:47:30 -0400 | |
|---|---|---|
| committer | 2019-03-19 14:47:30 -0400 | |
| commit | 5193e46787184a5baf5751fc20944a0811c970a3 (patch) | |
| tree | 82f620aaa58ce8ce06fb58a8d525b24ceba5ce46 /bot/seasons/valentines/pickuplines.py | |
| parent | Docstring pass for Evergreen cogs (diff) | |
Docstring pass for Valentine's cogs
Diffstat (limited to 'bot/seasons/valentines/pickuplines.py')
| -rw-r--r-- | bot/seasons/valentines/pickuplines.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bot/seasons/valentines/pickuplines.py b/bot/seasons/valentines/pickuplines.py index 4462478f..bce5cdcc 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: - """ - 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.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: def setup(bot): + """Pickup lines Cog load.""" + bot.add_cog(PickupLine(bot)) log.info('Pickup line cog loaded') |