removed the unicode flag from the regexes

This commit is contained in:
2021-08-15 23:14:18 -05:00
parent a306f22f13
commit e1e9da8340

View File

@@ -28,11 +28,11 @@ class RoboPage(discord.Client):
self.jokes = list(attrs)
self.most_regex = re.compile(
"^who is the most\s+(?P<emoji>\S+)\s*?(?:in the past (?P<days>\d+) days)?\??$",
re.IGNORECASE & re.UNICODE,
re.IGNORECASE,
)
self.leaderboard_regex = re.compile(
'^most (?P<emoji>\S+) (leaderboard|((?:.+?(?P<days>\d+) days)))',
re.IGNORECASE & re.UNICODE
'^most\s*?(?P<emoji>\S+?)\s*?(leaderboard|((?:.+?(?P<days>\d+) days)))',
re.IGNORECASE
)
async def handle_ready(self):