diff options
Diffstat (limited to 'bot/seasons')
| -rw-r--r-- | bot/seasons/valentines/be_my_valentine.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/bot/seasons/valentines/be_my_valentine.py b/bot/seasons/valentines/be_my_valentine.py index 83c02841..0046ceb4 100644 --- a/bot/seasons/valentines/be_my_valentine.py +++ b/bot/seasons/valentines/be_my_valentine.py @@ -94,8 +94,8 @@ class BeMyValentine: return await ctx.send(message) if user == ctx.author: - # Well a user cant valentine himself/herself. - return await ctx.send('Come on dude, you cant send a valentine to yourself :expressionless:') + # Well a user can't valentine himself/herself. + return await ctx.send("Come on dude, you can't send a valentine to yourself :expressionless:") emoji_1, emoji_2 = self.random_emoji() lovefest_role = discord.utils.get(ctx.guild.roles, id=Lovefest.role_id) @@ -199,11 +199,8 @@ class BeMyValentine: """ if author in members: members.remove(author) - if len(members) != 0: - user = random.choice(members) - else: - user = None - return user + + return random.choice(members) if members else None @staticmethod def random_emoji(): |