Misc-small-projects/dodsorfas/Skypebot/helper.js
2016-08-21 13:53:33 +02:00

9 lines
222 B
JavaScript

exports.send = function(session, texta) {
texta.forEach(function(text) {
session.send(text);
})
}
exports.regex = function(command) {
return RegExp ("^(<at id=\"\\S+\">Dodsorbot<\\/at>\\s)?(" + command + ")", "i");
}