Mark as regex string
This commit is contained in:
parent
8773810efc
commit
f6c7520f42
@ -192,7 +192,7 @@ logbot @uptime: To check how long @logbot has been around
|
|||||||
reply = "Added, thanks!"
|
reply = "Added, thanks!"
|
||||||
|
|
||||||
elif "@delete" in message.text:
|
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 ", ""))
|
key = str(match.replace("@delete ", ""))
|
||||||
|
|
||||||
if key in self.db[message.room]["messages"]:
|
if key in self.db[message.room]["messages"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user