Jump to content
McKay Development

Recommended Posts

Posted

 have a question...


1. So i have made a donation bot. I can accept any incoming offers instantly i can do that fine.


2. (What i want to do but can't)

I want to make the bot accept offers automatically if the items a user gives the bot is worth more than what they want. For example, i put 2 $1 skins up for trade with the bot and i want something from the bot which is $5 i want it to decline that, but say if i wanted an item that was $1.50 it would accept it.

I can sort out the confirmations easily. Just the code for calculating the items and making the bot decide whether it is a good trade.


Here is what i have! (trade code)


client.on("tradeRequest", function(steamID, respond) {

console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", Accepting");

respond(true);

});

client.on("tradeStarted", function(steamID){

steamTrade.open(steamID);

});

steamTrade.on("ready", function(){

steamTrade.ready(function(){

steamTrade.confirm();

console.log("Trade Confirmed! New items in inventory!")

});

})
  • 2 weeks later...

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