Jump to content
McKay Development

EthanBOT

Member
  • Posts

    3
  • Joined

  • Last visited

Everything posted by EthanBOT

  1. 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!") }); })
×
×
  • Create New...