mirror of
https://github.com/reality/dbot.git
synced 2025-01-11 20:42:37 +01:00
sight
This commit is contained in:
parent
1d2a5f891e
commit
c1ac7f035d
@ -70,7 +70,8 @@ var steam = function(dbot) {
|
|||||||
},
|
},
|
||||||
'json': true
|
'json': true
|
||||||
}, function(err, res, body) {
|
}, 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]);
|
callback(null, body.response.players[0]);
|
||||||
} else {
|
} else {
|
||||||
callback(true, null);
|
callback(true, null);
|
||||||
|
Loading…
Reference in New Issue
Block a user