2016-08-21 13:53:33 +02:00
|
|
|
exports.send = function(session, texta) {
|
|
|
|
texta.forEach(function(text) {
|
|
|
|
session.send(text);
|
|
|
|
})
|
|
|
|
}
|
|
|
|
|
|
|
|
exports.regex = function(command) {
|
2016-08-23 22:41:00 +02:00
|
|
|
return RegExp ("^((Edited previous message: )?\\n?<at id=\"\\S+\">(@?Dodsorbot|@28:b8381d78-ab09-496c-b382-860a98fa1dc3)<\\/at>\\s)?(" + command + ")", "i");
|
2016-08-21 13:53:33 +02:00
|
|
|
}
|