Jump to content



node.js node-steamcommunity

  • Please log in to reply
2 replies to this topic

#1 neverhood


    Advanced Member

  • Member
  • PipPipPip
  • 48 posts

Posted 02 July 2018 - 04:41 AM

Hello, I'm using card bot (lvl up bot) with public source code

everything is working fine, but I want to do this bot more effective


this bot using:

community.startConfirmationChecker(10000, CONFIG.IDENTITYSECRET);

and I don't like this method, I trying to use acceptConfirmationForObject, but I think I'm doing something wrong


community.on("newConfirmation", (CONF) => {
     console.log("## New confirmation.");
    community.acceptConfirmationForObject(CONFIG.IDENTITYSECRET, CONF.id); 

because if I remove "community.startConfirmationChecker" my trades are not accepted

when I use: "community.on("newConfirmation", (CONF) => {" I don't even see console logs with "console.log("## New confirmation.");"



did I do something wrong?
I want to remove startConfirmationChecker and using only acceptConfirmationForObject

#2 Dr. McKay

Dr. McKay


  • Administrator
  • 2,074 posts

Posted 02 July 2018 - 11:21 AM

The object ID should be your trade offer ID, not the confirmation ID. You shouldn't use the newConfirmation event at all anymore.

#3 neverhood


    Advanced Member

  • Member
  • PipPipPip
  • 48 posts

Posted 02 July 2018 - 11:40 AM

oh I get it now, thank you

					if (status == 'pending') {
						// We need to confirm it
						console.log(`Offer #${offer.id} sent, but requires confirmation`);
						community.acceptConfirmationForObject(config.identitySecret, offer.id, function(err) {
							if (err) {
							} else {
								console.log("Offer confirmed");
					} else {
						console.log(`Offer #${offer.id} sent successfully`);

used this and works good! 

  • Dr. McKay likes this

Also tagged with one or more of these keywords: node.js, node-steamcommunity

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users