Jump to content
McKay Development

Recommended Posts

Posted

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

 

Posted

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

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