Jump to content
McKay Development

◄ Trader Dave ►

Member
  • Posts

    7
  • Joined

  • Last visited

◄ Trader Dave ►'s Achievements

  1. Thank yu very much, the script works and I understand the new confirmation method better now
  2. Heyu Would you happen to have a node script that takes in, username, password, shared and identity secret and just accepts all trade and market confirmations. Since SDA broke yesterday and I started my old auto accepter Ive realized that steam totp can't accept trades anymore for some reason
  3. Ive tried running the basic storehouse example about 20 times, tried importing in es6 and as a cjs file but I keep running into the same error over and over again. In the other steamcommunity storehouse example it seems to have trouble even logging into community. Secrets and login details are correct, it logs in and sda works with those secrets, but for some reason I keep getting this error: TypeError: community.acceptConfirmationForObject is not a function. Log: Logged into Steam Then a hundred lines like this: (node:8784) TimeoutOverflowWarning: 1676962332106 does not fit into a 32-bit signed integer. Timeout duration was set to 1. (node:8784) TimeoutOverflowWarning: 1676962332107 does not fit into a 32-bit signed integer. Timeout duration was set to 1. Then api key shows correctly New offer #5762908459 from [U:1:1045770003] Offer accepted: pending C:\Users\user\Desktop\app\bot\app.cjs:67 community.acceptConfirmationForObject(ids, offer.id, function(err) { ^ TypeError: community.acceptConfirmationForObject is not a function at C:\Users\user\Desktop\app\bot\app.cjs:67:15 at TradeOffer.<anonymous> (C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:618:5) at C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:658:3 at C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:48:4 at checkNeededDescriptions (C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:174:3) at C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\classes\TradeOffer.js:42:3 at SteamCommunity.<anonymous> (C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\lib\webapi.js:46:3) at Request._callback (C:\Users\user\Desktop\app\node_modules\steam-tradeoffer-manager\node_modules\steamcommunity\components\http.js:67:15) at self.callback (C:\Users\user\Desktop\app\node_modules\request\request.js:185:22) at Request.emit (node:events:513:28) Node.js v18.12.1 Heres my code: const SteamUser = require('steam-user'); const SteamCommunity = require('steamcommunity'); const SteamTotp = require('steam-totp'); const TradeOfferManager = require('steam-tradeoffer-manager') const FS = require('fs'); let client = new SteamUser(); let manager = new TradeOfferManager({ "steam": client, // Polling every 30 seconds is fine since we get notifications from Steam "domain": "example.com", // Our domain is example.com "language": "en", // We want English item descriptions "pollInterval": 15000 }); let community = new SteamCommunity(); // Steam logon options let logOnOptions = { "accountName": usr, "password": pwd, "twoFactorCode": SteamTotp.getAuthCode(sds) }; if (FS.existsSync('polldata.json')) { manager.pollData = JSON.parse(FS.readFileSync('polldata.json').toString('utf8')); } client.logOn(logOnOptions); client.on('loggedOn', function() { console.log("Logged into Steam"); }); client.on('webSession', function(sessionID, cookies) { manager.setCookies(cookies, function(err) { if (err) { console.log(err); process.exit(1); // Fatal error since we couldn't get our API key return; } console.log("Got API key: " + manager.apiKey); }); community.setCookies(cookies); }); manager.on('newOffer', function(offer) { console.log("New offer #" + offer.id + " from " + offer.partner.getSteam3RenderedID()); offer.accept(function(err, status) { if (err) { console.log("Unable to accept offer: " + err.message); } else { console.log("Offer accepted: " + status); if (status == "pending") { community.acceptConfirmationForObject(ids, offer.id, function(err) { if (err) { console.log("Can't confirm trade offer: " + err.message); } else { console.log("Trade offer " + offer.id + " confirmed"); } }) }; } }); }); manager.on('pollData', function(pollData) { FS.writeFileSync('polldata.json', JSON.stringify(pollData)); });
  4. OK so It does not seem to run, it probably doesn.t qualify as crafting.
  5. Hello. If I want to combine a killstreak kit with a weapon through node. Would I use the craft method, or the use method? Is it as easy as giving the craft method a array with the Killstreak kit's id and the weapon's id?
  6. "tf2 v3 only supports steam-user v4.2.0 or later" So, ive updated both tf2 and steam-user, but their versions show as 3.0.1 for tf2 and 4.13.0 for steam-user have i installed the wrong version of tf2? Ok so ive solved the issue, how do i close this topic?
×
×
  • Create New...