Jartsu Posted July 2, 2016 Report 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
Dr. McKay Posted July 2, 2016 Report Posted July 2, 2016 I have no idea whatsoever what you're asking. Quote
Jartsu Posted July 5, 2016 Author Report 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
Dr. McKay Posted July 5, 2016 Report 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
Jartsu Posted July 5, 2016 Author Report 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
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.