From 26b8c83418634045cac7da8f9f5960d65540efd0 Mon Sep 17 00:00:00 2001 From: Matthew Cohen Date: Fri, 1 Nov 2024 21:23:04 -0400 Subject: [PATCH] Name case --- events/extralife.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/events/extralife.py b/events/extralife.py index ebea40e..b0660c2 100644 --- a/events/extralife.py +++ b/events/extralife.py @@ -164,10 +164,10 @@ async def donation_check(self): break donor_name = 'Anonymous' if not 'displayName' in donation else donation['displayName'] - match = re.match(r'[\s\S]+#\d{4}|[a-z0-9._]+', donor_name) + match = re.match(r'[\s\S]+#\d{4}|[a-z0-9._]+', donor_name.lower()) if match: # Donor name format matches a Discord username - member = discord.utils.find(lambda m: str(m).lower() == match.group(0).lower(), self.guild.members) + member = discord.utils.find(lambda m: str(m) == match.group(0), self.guild.members) if member: if self.donorRole not in member.roles: try: