added empty user status response
This commit is contained in:
parent
aa965c6772
commit
d5e3ea215d
|
@ -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.");
|
||||
})
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue