EthanBOT Posted December 12, 2016 Report Posted December 12, 2016 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!") }); }) Quote
EthanBOT Posted December 12, 2016 Author Report Posted December 12, 2016 Bump! Really need help developers!!! Quote
Van Kappa Posted December 21, 2016 Report Posted December 21, 2016 For that you will need to get the items price. Here's something for you to start with https://github.com/Arze1/CSGO-Overpay-Bot/blob/master/bot.js Quote
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.