final fixes

This commit is contained in:
henne 2016-04-30 14:43:44 +02:00
parent 181d7191b3
commit 946fe2520f
1 changed files with 8 additions and 8 deletions

View File

@ -17,28 +17,28 @@ module.exports = function(robot) {
client.end(command);
});
}
robot.hear(/^raumgirl: rot$/i, function(r) {
robot.respond(/rot$/i, function(r) {
setLampel(1,0,0);
});
robot.hear(/^raumgirl: gruen$/i, function(r) {
robot.respond(/grue$/i, function(r) {
setLampel(0,0,1);
});
robot.hear(/^raumgirl: gelb$/i, function(r) {
robot.respond(/gelb$/i, function(r) {
setLampel(0,1,0);
});
robot.hear(/^raumgirl: (all|alle|rotgelbgruen|gelbrotgruen|rotgruengelb|gelbgruenrot|gruenrotgelb|gruengelbrot)$/i, function(r) {
robot.respond(/(all|alle|rotgelbgruen|gelbrotgruen|rotgruengelb|gelbgruenrot|gruenrotgelb|gruengelbrot)$/i, function(r) {
setLampel(1,1,1);
});
robot.hear(/^raumgirl: (rotgelb|gelbrot)$/i, function(r) {
robot.respond(/(rotgelb|gelbrot)$/i, function(r) {
setLampel(1,1,0);
});
robot.hear(/^raumgirl: (gruengelb|gelbgruen)$/i, function(r) {
robot.respond(/(gruengelb|gelbgruen)$/i, function(r) {
setLampel(0,1,1);
});
robot.hear(/^raumgirl: (rotgruen|gruenrot)$/i, function(r) {
robot.respond(/(rotgruen|gruenrot)$/i, function(r) {
setLampel(1,0,1);
});
robot.hear(/^raumgirl: (aus|off)$/i, function(r) {
robot.respond(/(aus|off)$/i, function(r) {
setLampel(0,0,0);
});
// topic