mrxbell Posted January 10, 2017 Report Share Posted January 10, 2017 This is demo code : user.on('tradeRequest', function(steamID, respond) { console.log("Incoming trade request from " + steamID.getSteam3RenderedID() + ", accepting"); respond(true); }); I want addFriend when user trade request ? But event tradeRequest not Emitted ? Please help me ! Thanks Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 10, 2017 Report Share Posted January 10, 2017 You've provided no details, but I can hazard a guess and say that tradeRequest isn't what you're looking for. It's emitted when a Steam real-time trading request is received, not when a trade offer is received. Quote Link to comment Share on other sites More sharing options...
mrxbell Posted January 11, 2017 Author Report Share Posted January 11, 2017 Thank. Then , how i can auto addFriend when they send trade offer for me ? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted January 11, 2017 Report Share Posted January 11, 2017 You can handle trade offers with steam-tradeoffer-manager. Quote Link to comment Share on other sites More sharing options...
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.