Mark as regex string

This commit is contained in:
Luke Murphy 2021-02-27 10:47:16 +01:00
parent 8773810efc
commit f6c7520f42
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC

View File

@ -192,7 +192,7 @@ logbot @uptime: To check how long @logbot has been around
reply = "Added, thanks!"
elif "@delete" in message.text:
match = re.findall("@delete \d*", message.content)[0]
match = re.findall(r"@delete \d*", message.content)[0]
key = str(match.replace("@delete ", ""))
if key in self.db[message.room]["messages"]: