Jump to content
McKay Development

Usage of offer.expires & offer.canceltime


Recommended Posts

Are you wanting to cancel existing offers after X time has passed?

 

If so, have a look at constructor options: https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOfferManager-@-v1#constructoroptions

Seems like this is, in general, the option I searched for, but I've got some problem with it....

 

I got different offer types send by the bot.... so this option isn't the right I think.

1. deposit trades, which request items of the user (maximum Pending Time ~ 3 Minutes)

2. payout trades, which send the winnings to the user (maximum Pending Time up to 6 hours)

 

how to handle both with this or another option?

of course, I could write an object array in my code with all offers, check the created property and type and cancel if time passed > allowed time... but this is the dirty way and I want to handle it correctly...

 

also, I saw there is an option cancelOfferCount option to cancel the oldest offer if I'm not allowed to create a new one because of the limitations by steam...

here I've got the same problem...

 

any ideas?

Edited by xniceinz
Link to comment
Share on other sites

You can control cancelTime per-offer using the cancelTime data key: https://github.com/DoctorMcKay/node-steam-tradeoffer-manager/wiki/TradeOffer#datakey-value

 

thank you, man! It works. 

 

You've got a solution or idea too for my problem with the cancelOfferCount function?

It's possible to pass the offer an option, that the function shouldn't affect it?

 

 

Link to comment
Share on other sites

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...