diff options
| author | 2021-02-06 09:09:25 +0530 | |
|---|---|---|
| committer | 2021-02-06 09:09:25 +0530 | |
| commit | a1ba7e857ecfae6382afc6f7fd479a246d953d36 (patch) | |
| tree | 7cfc3247f5ee307e455e72d0dddf8cb297ef30a3 /bot/exts | |
| parent | Improve grammar and update docstrings, add try..except block while sending DMs (diff) | |
Slight modifications to functionality of bemyvalentine secret and its messages
Diffstat (limited to 'bot/exts')
| -rw-r--r-- | bot/exts/valentines/be_my_valentine.py | 9 | 
1 files changed, 5 insertions, 4 deletions
| diff --git a/bot/exts/valentines/be_my_valentine.py b/bot/exts/valentines/be_my_valentine.py index 26966804..d5668738 100644 --- a/bot/exts/valentines/be_my_valentine.py +++ b/bot/exts/valentines/be_my_valentine.py @@ -95,7 +95,7 @@ class BeMyValentine(commands.Cog):          if user == ctx.author:              # Well a user can't valentine himself/herself. -            await ctx.send("Come on dude, you can't send a valentine to yourself :expressionless:") +            await ctx.send("Come on, you can't send a valentine to yourself :expressionless:")              return          emoji_1, emoji_2 = self.random_emoji() @@ -109,7 +109,7 @@ class BeMyValentine(commands.Cog):          )          await channel.send(user.mention, embed=embed) -    @commands.cooldown(1, 1800, BucketType.user) +    # @commands.cooldown(1, 1800, BucketType.user)      @send_valentine.command(name='secret')      async def anonymous(          self, ctx: commands.Context, user: discord.Member, *, valentine_type: str = None @@ -131,11 +131,12 @@ class BeMyValentine(commands.Cog):                  await ctx.author.send(message)              except discord.Forbidden:                  await ctx.send(message) +            return          if user == ctx.author:              # Well a user cant valentine himself/herself. -            await ctx.message.delete() -            await ctx.send('Come on dude, you cant send a valentine to yourself :expressionless:') +            await ctx.send('Come on, you cant send a valentine to yourself :expressionless:') +            return          emoji_1, emoji_2 = self.random_emoji()          valentine, title = self.valentine_check(valentine_type) | 
