echo command cute

This commit is contained in:
Peter Cottle 2013-01-09 00:30:43 -08:00
parent 1f6189943a
commit 2bee3d357a
6 changed files with 119 additions and 122 deletions

View file

@ -33,6 +33,13 @@ var instantCommands = [
throw new CommandResult({
msg: 'Commands combined!'
});
}],
[/^echo "([a-zA-Z0-9 ]+)"$|^echo ([a-zA-Z0-9 ]+)$/, function(bits) {
var msg = bits[1] || bits[2];
console.log(bits, msg);
throw new CommandResult({
msg: msg
});
}]
];