Browse Source

test mendhandler

master
Nemesis 4 years ago
parent
commit
4c318ee631
  1. 2
      mend_handler.py

2
mend_handler.py

@ -14,7 +14,7 @@ class MEndHandler(MHandler):
def test(self, room, event):
if event['type'] == "m.room.message":
motif = "^.+" + self.regex_str + "$"
motif = "^[\S\s]+" + self.regex_str + "$"
if re.match(motif, event['content']['body']):
# The message matches the regex, return true
return True

Loading…
Cancel
Save