Misc-small-projects/dodsorfas/Skypebot/helper.js
Daniel Løvbrøtte Olsen 57651aaf2d Fixed for phones
For some reason, bot messages sent from phones are different in the session than skypeforweb and skypeforlinux.
2016-08-21 21:53:21 +02:00

9 lines
265 B
JavaScript

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