mirror of
https://github.com/reality/dbot.git
synced 2025-01-11 12:32:36 +01:00
sight
This commit is contained in:
parent
1d2a5f891e
commit
c1ac7f035d
@ -70,7 +70,8 @@ var steam = function(dbot) {
|
||||
},
|
||||
'json': true
|
||||
}, function(err, res, body) {
|
||||
if(_.has(body, 'response') && _.has(body.response, 'players') && body.response.player != null) {
|
||||
if(_.has(body, 'response') && _.has(body.response, 'players') &&
|
||||
body.response.players != null) {
|
||||
callback(null, body.response.players[0]);
|
||||
} else {
|
||||
callback(true, null);
|
||||
|
Loading…
Reference in New Issue
Block a user