Added ls
This commit is contained in:
parent
d5e3ea215d
commit
13a16dc3cb
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hubot-raumgirl-new",
|
"name": "hubot-raumgirl-new",
|
||||||
"description": "ctdo raumgirl",
|
"description": "ctdo raumgirl",
|
||||||
"version": "0.0.5",
|
"version": "0.0.6",
|
||||||
"author": "henne@ctdo.de",
|
"author": "henne@ctdo.de",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
|
||||||
|
|
|
@ -103,8 +103,8 @@ module.exports = function(robot) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// new stuff
|
// status
|
||||||
robot.respond(/status$/i, function(r) {
|
robot.respond(/(status|ls)$/i, function(r) {
|
||||||
console.log("status");
|
console.log("status");
|
||||||
robot.http("http://status.ctdo.de/api/simple/v2")
|
robot.http("http://status.ctdo.de/api/simple/v2")
|
||||||
.header('Accept', 'application/json')
|
.header('Accept', 'application/json')
|
||||||
|
@ -115,5 +115,4 @@ module.exports = function(robot) {
|
||||||
r.reply("Ich erkenne niemanden im Treff.");
|
r.reply("Ich erkenne niemanden im Treff.");
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue