From 0d104aefa1bdcf6d183398860c951a23f76cea6b Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 21 Jun 2023 18:59:43 +0100 Subject: Update NOMINATION_MESSAGE_REGEX for new discord.User.__str__ behaviour --- bot/exts/recruitment/talentpool/_review.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/exts/recruitment/talentpool/_review.py b/bot/exts/recruitment/talentpool/_review.py index 76d9a87db..241656853 100644 --- a/bot/exts/recruitment/talentpool/_review.py +++ b/bot/exts/recruitment/talentpool/_review.py @@ -46,7 +46,7 @@ REVIEW_SCORE_WEIGHT = 1.5 # Regex for finding the first message of a nomination, and extracting the nominee. NOMINATION_MESSAGE_REGEX = re.compile( - r"<@!?(\d+)> \(.+#\d{4}\) for Helper!\n\n", + r"<@!?(\d+)> \(.+(#\d{4})?\) for Helper!\n\n", re.MULTILINE ) -- cgit v1.2.3