venfiw Posted July 31, 2019 Report Share Posted July 31, 2019 now,i use this ways, first accept all offer, then i send a message to my bot ,to confirm i want offer if (message.indexOf("@confirm") >=0) { if (steamID == Config.admin) { community.acceptConfirmationForObject(Config.identity, message.replace("@confirm ",""), function(err){ if(err){ console.log(' Cant confirmed the offer. Please try again later'); client.chatMessage(Config.admin, "HI admin: Cant confirmed the offer"); } else { console.log(' Succesfully confirmed the offer.'); client.chatMessage(Config.admin, "HI admin: Offer was successful"); } }); } } now how can i send a message to make my bot accept offer or decline offer? may be i can accept all offer and then i send confirm message to finish i want tradeand every 2hours decline all offer to decline i needn't offerplease help Quote Link to comment Share on other sites More sharing options...
venfiw Posted July 31, 2019 Author Report Share Posted July 31, 2019 is this function living? community.declineConfirmationForObject(Config.identity, message.replace("@confirm ",""), function(err){ if(err){ console.log(' Cant confirmed the offer. Please try again later'); client.chatMessage(Config.admin, "HI admin: Cant confirmed the offer"); } else { console.log(' Succesfully confirmed the offer.'); client.chatMessage(Config.admin, "HI admin: Offer was successful"); } }); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 1, 2019 Report Share Posted August 1, 2019 No, there is no such function as declineConfirmationForOffer. If you want to accept a given offer by ID, you'll need to first retrieve it using getOffer. Quote Link to comment Share on other sites More sharing options...
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.