offer.accept(function(err) { if (err) { console.log("Unable to accept offer: " + err.message); } else { community.checkConfirmations(); // Check for confirmations right after accepting the offer console.log("Offer accepted"); } });
community_login(function() { myLog.info("Starting comfirmation polling"); community.startConfirmationChecker(10000, account_config.steam_guard.identity_secret); myLog.info("Checking confirmations"); community.checkConfirmations(); });
processOffer(offer, function(passed) { if(passed) { community.checkConfirmations(); } });