added empty user status response

This commit is contained in:
henne 2016-05-02 19:20:18 +02:00
parent aa965c6772
commit d5e3ea215d
1 changed files with 3 additions and 2 deletions

View File

@ -110,8 +110,9 @@ module.exports = function(robot) {
.header('Accept', 'application/json')
.get()(function(err, res, body) {
var data = JSON.parse(body);
console.log(body);
r.reply("Derzeit im Treff: " + data.names.join(', '));
if(data.names.length)
return r.reply("Derzeit im Treff: " + data.names.join(', '));
r.reply("Ich erkenne niemanden im Treff.");
})
});