Browse Source

Mark as regex string

master
Luke Murphy 4 years ago
parent
commit
f6c7520f42
No known key found for this signature in database GPG Key ID: 5E2EF5A63E3718CC
  1. 2
      LogBot/logbot.py

2
LogBot/logbot.py

@ -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…
Cancel
Save