diff options
| author | 2019-02-27 18:39:18 +1000 | |
|---|---|---|
| committer | 2019-02-27 18:39:18 +1000 | |
| commit | f96b88b43940726cf21be17601c7cc7a14be1600 (patch) | |
| tree | 60c30b677702ad1f6ce705dd27bb3f28beebc72d /bot/seasons | |
| parent | Address DM failure, random_user logic, str[key] error. (diff) | |
Address grammatical errors.
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(): |