aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-08-08 11:50:50 +0200
committerGravatar kwzrd <[email protected]>2020-08-08 11:50:50 +0200
commit174796a9bf8fcb117f38e8d6dc1a4b17c3849334 (patch)
treefc7d5216609a571968cb9c31f7e3f543f3aa4fbb
parentVerification: widen set type annotation (diff)
Verification: strip reminder message once and for all
Co-authored-by: MarkKoz <[email protected]>
-rw-r--r--bot/cogs/verification.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 9dc65da1c..a22b91e5d 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -73,7 +73,7 @@ Welcome to Python Discord! Please read the documents mentioned above and type `!
to send messages in the community!
You will be kicked if you don't verify within `{KICKED_AFTER}` days.
-"""
+""".strip()
REMINDER_FREQUENCY = 28 # Hours to wait between sending `REMINDER_MESSAGE`
@@ -424,7 +424,7 @@ class Verification(Cog):
if message.channel.id != constants.Channels.verification:
return # Only listen for #checkpoint messages
- if message.content == REMINDER_MESSAGE.strip():
+ if message.content == REMINDER_MESSAGE:
return # Ignore bots own verification reminder
if message.author.bot: