Jartsu Posted July 2, 2016 Report Share Posted July 2, 2016 Hey, I'm trying to make an "confirmation system". After trade is sent, you can call it, with trade id, so it would be confirmed. Is there already something like that or not? If it's not possible to do something like that, okay. If it's not possible (the tradeid confirming, then) -> After logging in I have that line: community.startConfirmationChecker(10000, account.identity_secret);But it doesn't seem to work for me. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 2, 2016 Report Share Posted July 2, 2016 I have no idea whatsoever what you're asking. Quote Link to comment Share on other sites More sharing options...
Jartsu Posted July 5, 2016 Author Report Share Posted July 5, 2016 Hello, Sorry for bad explanation.. After trade is sent, you will be getting a trade id Ex: 7362832Then I wanted to create a function example: ConfirmTrade(int tradeID)The question what I was asking, is there a possible way creating that function? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 5, 2016 Report Share Posted July 5, 2016 Trade offer ID? Yes, it's possible. You'd just need to request your confirmation list then get details for each individual one until you found the matching offer ID. Quote Link to comment Share on other sites More sharing options...
Jartsu Posted July 5, 2016 Author Report Share Posted July 5, 2016 Hmm, The confirming doesn't work for me at all :/, What could be the issue (not the same thing what I asked before) community.on('confKeyNeeded', function(tag, callback) { var time = Math.floor(Date.now() / 1000); var key_conf = SteamTotp.getConfirmationKey(config.identity_secret, time, 'conf'); callback(null, time, key_conf); }); community.on('newConfirmation', function(confirmation) { logger.info("newConfirmation requested."); var time_details = Math.floor(Date.now() / 1000); var key_details = SteamTotp.getConfirmationKey(config.identity_secret, time_details+t_offset, 'allow'); confirmation.respond(time_details+t_offset, key_details, true, function(err){ if (err != null) {logger.error("Unable to confirm offer: "+err); return; } logger.info("Trade Accepted with 2FA"); }); }); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted July 5, 2016 Report Share Posted July 5, 2016 Are you getting some kind of error? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.