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')
|
.header('Accept', 'application/json')
|
||||||
.get()(function(err, res, body) {
|
.get()(function(err, res, body) {
|
||||||
var data = JSON.parse(body);
|
var data = JSON.parse(body);
|
||||||
console.log(body);
|
if(data.names.length)
|
||||||
r.reply("Derzeit im Treff: " + data.names.join(', '));
|
return r.reply("Derzeit im Treff: " + data.names.join(', '));
|
||||||
|
r.reply("Ich erkenne niemanden im Treff.");
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue