Jump to content


Photo

is there any way i can use offer.id to accept the offer?

node.js node-steam-tradeoffer-manager

  • Please log in to reply
2 replies to this topic

#1 venfiw

venfiw

    Member

  • Member
  • PipPip
  • 17 posts

Posted 31 July 2019 - 05:01 AM

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 trade

and every 2hours decline all offer to decline i needn't offer

please help

 



#2 venfiw

venfiw

    Member

  • Member
  • PipPip
  • 17 posts

Posted 31 July 2019 - 05:04 AM

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");
          }
        });


#3 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,166 posts

Posted 01 August 2019 - 02:51 AM

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.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users