aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar kwzrd <[email protected]>2020-08-04 20:11:01 +0200
committerGravatar kwzrd <[email protected]>2020-08-04 20:11:01 +0200
commitf4721ba580c5d47d0cd5fb5beb60e6af54098244 (patch)
tree807e7b946655e8850338874fa5dc673fd17a4542
parentVerification: make authorization message ping core devs (diff)
Verification: move time constants above messages
Allows referencing the constants within the message bodies.
-rw-r--r--bot/cogs/verification.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 803cb055b..7244d041d 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -16,6 +16,16 @@ from bot.utils.checks import InWhitelistCheckFailure, without_role_check
log = logging.getLogger(__name__)
+UNVERIFIED_AFTER = 3 # Amount of days after which non-Developers receive the @Unverified role
+KICKED_AFTER = 30 # Amount of days after which non-Developers get kicked from the guild
+
+# Number in range [0, 1] determining the percentage of unverified users that are safe
+# to be kicked from the guild in one batch, any larger amount will require staff confirmation,
+# set this to 0 to require explicit approval for batches of any size
+KICK_CONFIRMATION_THRESHOLD = 0
+
+BOT_MESSAGE_DELETE_DELAY = 10
+
ON_JOIN_MESSAGE = f"""
Hello! Welcome to Python Discord!
@@ -43,16 +53,6 @@ If you'd like to unsubscribe from the announcement notifications, simply send `!
<#{constants.Channels.bot_commands}>.
"""
-UNVERIFIED_AFTER = 3 # Amount of days after which non-Developers receive the @Unverified role
-KICKED_AFTER = 30 # Amount of days after which non-Developers get kicked from the guild
-
-# Number in range [0, 1] determining the percentage of unverified users that are safe
-# to be kicked from the guild in one batch, any larger amount will require staff confirmation,
-# set this to 0 to require explicit approval for batches of any size
-KICK_CONFIRMATION_THRESHOLD = 0
-
-BOT_MESSAGE_DELETE_DELAY = 10
-
class Verification(Cog):
"""User verification and role self-management."""