Mark as regex

This commit is contained in:
Luke Murphy 2021-01-16 17:46:50 +01:00
parent 6695b5b173
commit 47ba30fe28
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class SimpleMessage:
body = self.message["body"]
try:
match = f"^{self.bot.nick}.?(\s)"
match = fr"^{self.bot.nick}.?(\s)"
split = re.split(match, body)
filtered = list(filter(None, split))
return filtered[-1].strip()