From f6c7520f421ebbecada60586538ad4b50969c5dc Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Sat, 27 Feb 2021 10:47:16 +0100 Subject: [PATCH] Mark as regex string --- LogBot/logbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LogBot/logbot.py b/LogBot/logbot.py index 92a44b7..be125e6 100644 --- a/LogBot/logbot.py +++ b/LogBot/logbot.py @@ -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"]: