diff --git a/robopage.py b/robopage.py index 8af2f2e..c50d488 100644 --- a/robopage.py +++ b/robopage.py @@ -28,11 +28,11 @@ class RoboPage(discord.Client): self.jokes = list(attrs) self.most_regex = re.compile( "^who is the most\s+(?P\S+)\s*?(?:in the past (?P\d+) days)?\??$", - re.IGNORECASE & re.UNICODE, + re.IGNORECASE, ) self.leaderboard_regex = re.compile( - '^most (?P\S+) (leaderboard|((?:.+?(?P\d+) days)))', - re.IGNORECASE & re.UNICODE + '^most\s*?(?P\S+?)\s*?(leaderboard|((?:.+?(?P\d+) days)))', + re.IGNORECASE ) async def handle_ready(self):