aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Chris Lovering <[email protected]>2021-11-01 18:52:03 +0000
committerGravatar Chris Lovering <[email protected]>2021-12-01 01:10:40 +0000
commit6bd2a56d43d70476d18c5fd66da20d8cf1518373 (patch)
treeb1e4fcbab68ef165973137d56a4c76fcd3ecea86
parentManage nomination threads (diff)
Update nomination message regex
-rw-r--r--bot/exts/recruitment/talentpool/_review.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py
index bc5cccda1..8b61a0eb5 100644
--- a/bot/exts/recruitment/talentpool/_review.py
+++ b/bot/exts/recruitment/talentpool/_review.py
@@ -36,9 +36,8 @@ MAX_MESSAGE_SIZE = 2000
MAX_EMBED_SIZE = 4000
# Regex for finding the first message of a nomination, and extracting the nominee.
-# Historic nominations will have 2 role mentions at the start, new ones won't, optionally match for this.
NOMINATION_MESSAGE_REGEX = re.compile(
- r"(?:<@&\d+> <@&\d+>\n)*?<@!?(\d+?)> \(.+#\d{4}\) for Helper!\n\n\*\*Nominated by:\*\*",
+ r"<@!?(\d+)> \(.+#\d{4}\) for Helper!\n\n",
re.MULTILINE
)