Jump to content
McKay Development

Recommended Posts

Posted

I'm having multiple bots which I store in a public array named `publicManager`.

I have set my manager options as the following for each bot;
 

      const manager = new TradeOfferManager({
        steam: client,
        community: community,
        language: 'en',
        "cancelTime": 60 * 3 * 1000 
      });

      manager.id = data.id;
      manager.identity_secret = data.identity_secret;

When the bot his client receives the webSession call I push the object into the publicManager array, now whenever I try send a trade with it I will get the bot by finding his BotId.

Now I'm having issues trying to confirm the offer, everything goes well until it gets to the confirmation part;
 

offer.send((err, status) => {
        if (err) {
          console.log(err);
        } else {                  
          selectedManager.acceptConfirmationForObject(selectedManager.identity_secret, offer.id, function(err){
            if(err){
              console.log(err);
              return;
            }

            console.log('Succesfully confirmed the offer.');
          });
        }
      });

for some odd reason it throws the error OfferLimitExceeded (e15), altough there are no trades open, did I misuse acceptConfirmationForObject? Cause' I'm a bit lost at this point.

Thanks in advance.

 

Posted

Most likely OfferLimitExceeded is coming from the actual call to offer.send(), not from confirming it. There's also a limit on how many offers can be awaiting confirmation, maybe you hit that.

He did have 5 awaiting confirmations, I'll check after declining those.

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...