aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-07-03 13:42:34 +0100
committerGravatar Gareth Coles <[email protected]>2018-07-03 13:42:34 +0100
commitde9e12ca59a24707eb44e8f5fd79903d5a077c14 (patch)
treed8c12dfb196a65b98d0bfbce08f6d0a731b1c8ab
parentLinting (diff)
[Announcements] Screw it, we don't need to remove the messages
-rw-r--r--bot/cogs/verification.py20
1 files changed, 3 insertions, 17 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 0be8b7bcf..198fe861d 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -104,9 +104,8 @@ class Verification:
break
if has_role:
- return await ctx.send(
+ await ctx.send(
f"{ctx.author.mention} You're already subscribed!",
- delete_after=5
)
log.debug(f"{ctx.author} called self.subscribe(). Assigning the 'Announcements' role.")
@@ -114,14 +113,8 @@ class Verification:
log.trace(f"Deleting the message posted by {ctx.author}.")
- try:
- await ctx.message.delete()
- except NotFound:
- log.trace("No message found, it must have been deleted by another bot.")
-
await ctx.send(
f"{ctx.author.mention} Subscribed to <#{Channels.announcements}> notifications.",
- delete_after=5
)
@command(name="unsubscribe", aliases=["unsubscribe()"])
@@ -140,8 +133,7 @@ class Verification:
if not has_role:
return await ctx.send(
- f"{ctx.author.mention} You're already unsubscribed!",
- delete_after=5
+ f"{ctx.author.mention} You're already unsubscribed!"
)
log.debug(f"{ctx.author} called self.unsubscribe(). Removing the 'Announcements' role.")
@@ -149,14 +141,8 @@ class Verification:
log.trace(f"Deleting the message posted by {ctx.author}.")
- try:
- await ctx.message.delete()
- except NotFound:
- log.trace("No message found, it must have been deleted by another bot.")
-
await ctx.send(
- f"{ctx.author.mention} Unsubscribed from <#{Channels.announcements}> notifications.",
- delete_after=5
+ f"{ctx.author.mention} Unsubscribed from <#{Channels.announcements}> notifications."
)