i can make run the games with gamesPlayed([]) i dont have any problem with it, i just want to do like an auto-restart games , and what im trying to accomplish with it is to not have delayed hours in steam. I was thinking doing it with like a setTimeout or setInterval so it restart every 30 mins , i dont know if it works like that. Something like this but well done:
bot.on('error', function(e) {
console.log("[" + this.username + "] " + e);
setTimeout(function() {bot.doLogin();}, 30*30*1000);