Jump to content
McKay Development

Is it possible to define a counteroffer?

Recommended Posts


1. If the bot receives a trade offer from user. then the bot makes a counteroffer.
2. If the user makes counteroffer, the bot should decline it.

So, The bot must decline offers that are counteroffers.

How can I implement this?
I did not find any data in TradeOffer object that could help me with this.

Are there any ideas how I should do this?

Maybe the bot should compare time? Llike if newOffer created time = offer with status "Countered" updated time then decline? Exam;e:

let trade = new SteamTradeofferManager()
let a

trade.on("newOffer", (offer) => {
	if (offer.created == a) {
		// decline
	} else {
		// create counteroffer

trade.on("sentOfferChanged", (offer) => {
	if (offer.state == 4) {
		a = offer.updated


Edited by PonyExpress
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.

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.

  • Create New...