Skip to content

Commit

Permalink
Merge pull request #1 from Armax/master
Browse files Browse the repository at this point in the history
Update fork
  • Loading branch information
Bart-0110 committed Jul 21, 2016
2 parents 4560f08 + e1023f7 commit 37cb3ee
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions example.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,17 @@ Pokeio.init(username, password, location, provider, function(err) {
console.log('[i] Pokecoin: ' + poke);
console.log('[i] Stardust: ' + profile.currency[1].amount);

Pokeio.Heartbeat(function(err, heartbeat) {

Pokeio.Heartbeat(function(err,hb) {
if(err) {
console.log(err);
}

console.log(heartbeat)
for (var i = hb.cells.length - 1; i >= 0; i--) {
var current = hb.cells[i].Fort;
console.log(current);
}

});

});
Expand Down

0 comments on commit 37cb3ee

Please sign in to comment.