Fixed for phones

For some reason, bot messages sent from phones are different in the session than skypeforweb and skypeforlinux.
This commit is contained in:
Daniel Løvbrøtte Olsen 2016-08-21 21:53:21 +02:00 committed by GitHub
parent 7db432a293
commit 57651aaf2d

View File

@ -5,5 +5,5 @@ exports.send = function(session, texta) {
}
exports.regex = function(command) {
return RegExp ("^(<at id=\"\\S+\">Dodsorbot<\\/at>\\s)?(" + command + ")", "i");
return RegExp ("^(<at id=\"\\S+\">(Dodsorbot|@28:b8381d78-ab09-496c-b382-860a98fa1dc3)<\\/at>\\s)?(" + command + ")", "i");
}