From 13a16dc3cbafaf9484d956fc4ad6705a5b4590af Mon Sep 17 00:00:00 2001 From: Tim Windelschmidt Date: Thu, 30 Jun 2016 18:15:30 +0200 Subject: [PATCH] Added ls --- package.json | 2 +- src/ctdo.js | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 425dbe4..8bbd3ab 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "hubot-raumgirl-new", "description": "ctdo raumgirl", - "version": "0.0.5", + "version": "0.0.6", "author": "henne@ctdo.de", "license": "MIT", diff --git a/src/ctdo.js b/src/ctdo.js index 19a4601..3a73e35 100644 --- a/src/ctdo.js +++ b/src/ctdo.js @@ -103,8 +103,8 @@ module.exports = function(robot) { } } }); - // new stuff - robot.respond(/status$/i, function(r) { + // status + robot.respond(/(status|ls)$/i, function(r) { console.log("status"); robot.http("http://status.ctdo.de/api/simple/v2") .header('Accept', 'application/json') @@ -115,5 +115,4 @@ module.exports = function(robot) { r.reply("Ich erkenne niemanden im Treff."); }) }); - }