LSpeed Posted 6 hours ago Report Posted 6 hours ago (edited) Hi everyone. Please, could you help me or just explain why am i facing with the next problem. Explanation: 1) I've installed all of the requirements npm install steam-user steamcommunity steam-totp steam-tradeoffer-manager npm WARN deprecated [email protected]: This package is deprecated. Use destructuring assignment syntax instead. npm WARN deprecated [email protected]: this library is no longer supported npm WARN deprecated [email protected]: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 added 145 packages, and audited 146 packages in 9s 3 packages are looking for funding run `npm fund` for details 8 vulnerabilities (3 moderate, 5 high) Some issues need review, and may require choosing 2) right after copied examples/storehouse-steam.js from the official git, filled the authorization data Login Password And sharedsecret 3) Started the code. 4) Then i saw Quote Logged into Steam Cookies set 5) After that i've sent tradeoffer from my second account to the bot's account, waited 10 minutes, and nothing happened. Example code didn't accept my tradeoffer or even didn't write about trade offer, litteraly nothing happened. I tried to switch on examples/storehouse-steamcommunity.js to try, but the same result. I even tried to add this code in the example client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error return; } console.log("Cookies set"); }); community.setCookies(cookies); manager.getOffers(1, function(err, sent, received) { if (err) { console.log('getOffers error:', err); return; } console.log(`Found ${received.length} received offers`); received.forEach(offer => { console.log(`Offer from ${offer.partner.getSteamID64()}, state: ${offer.state}`); }); }); }); and after i reloaded the code without cancelling existing tradeoffer. And the bot sees the active tradeoffer and printing in the cosole offer from [steamid] state: Active. May be it is known problem and im not the first one? Edited 5 hours ago by LSpeed Quote
LSpeed Posted 2 hours ago Author Report Posted 2 hours ago Seems like event newOffer is not working at all Quote
Dr. McKay Posted 1 hour ago Report Posted 1 hour ago If you're trading CS2 items, you'll need to enable the useAccessToken option in the TradeOfferManager constructor. 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.