final fixes
This commit is contained in:
parent
181d7191b3
commit
946fe2520f
16
src/ctdo.js
16
src/ctdo.js
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue