Jump to content
McKay Development

sNIP

Member
  • Content Count

    24
  • Joined

  • Last visited

Recent Profile Visitors

57 profile views
  1. Iam using this, it works fine, when I have time, I will look it up, probably after my finals. if(oldState == 12){ return; }
  2. The old state is 12, which is strange because the TradeOfferEnum max number is 12. Is that a debug number?
  3. I will check it, but I believe its the same, because if I keep the app running, it can emit 1000 times before I close it or the trade offer changes it states
  4. EDIT2: the emmiting stops when the trade offer is accepted and finalized(havent tested with others statuses) EDIT2.1: some offers are fine, some are causing "sentOfferChanged" to emit too much
  5. When I send a trade, it keeps telling me that the offer status is changed to 2 (Active), this happens every ~4-~7 seconds after I send the offer. Code related to the trade offer manager EDIT: The code below is wrapped inside an async Start() function, so I can use async. var pollData = await offerService.getPollData(); const manager = new TradeOfferManager({ steam: client, community: community, language: "en", cancelOfferCount: 30, pollData: pollData }); manager.on("sentOfferChanged", (offer, oldState) => { //<this emits every ~4-~7 seconds console.log(`Sent offer changed:` + offer.state); senderService.onSentOfferChanged(thisId, offer.partner.getSteamID64(), offer); }); manager.on("pollData", data => { offerService.savePollData(thisId, data); });
  6. I hold the credentials of my bots in plain text, but Iam sure that nobody can access the vps server and the plain text files. So one of the bot got his inventory wiped out by this guy https://steamcommunity.com/profiles/76561198878870680 . I have auto confirm all trades on confirmation event emit. Its strange that I hold credentials for other bots on the same file which are not touched at the moment and have items. I locked the other accounts but left 2 too see what will happen
  7. const client = new SteamUser();client.setOption("localAddress",logInConfig.publicIP);const logInOptions = { accountName: logInConfig.accountName, password: logInConfig.password, twoFactorCode: SteamTotp.generateAuthCode(logInConfig.sharedSecret)}; const community = new SteamCommunity({ localAddress:logInConfig.publicIP});const manager = new TradeOfferManager({ steam: client, community: community, language: "en", cancelOfferCount: 30});client.logOn(logInOptions);Will the manager use the logInConfig.publicIP?
  8. I had run into the same problem and I had to change ips, the first time it happened was when I used confirmation checker, the second was that I used client.weblogon too much
  9. It seems that everything is ok from the manager debug, it prints "doing trade offer poll since *somenumber*" and 1/5 of the times or something "trade offer poll since 1(full update)", but no emits. EDIT: I just love javascript and my stupidity manager.on("sentOfferChanged " I had this space floating around, thanks anyways!
  10. const client = new SteamUser();const community = new SteamCommunity();const manager = new TradeOfferManager({ steam: client, community: community, language: "en",}); const logInOptions = { accountName: logInConfig.accountName, password: logInConfig.password, twoFactorCode: SteamTotp.generateAuthCode(logInConfig.sharedSecret)}; client.logOn(logInOptions); client.on("loggedOn", () => { console.log("logged on"); client.setPersona(SteamUser.EPersonaState.Online); client.gamesPlayed(730); client.webLogOn();}); client.on("webSession", (sid, cookies) => { manager.setCookies(cookies); community.setCookies(cookies); });Really looking forward for help edit: Also this community.on('sessionExpired', function(err) { if (err) { console.log('Session Expired: ' + err); } if (client.steamID) { client.webLogOn(); console.log('called weblogon: ' + thisId); } else { client.logOn(logOnOptions); console.log('called logon'); }});Edit:2 I do not receive ANY emits now from sentOfferChanged, can confirm that client.on("webSession", (sid, cookies) => { is called
  11. const manager = new TradeOfferManager({ steam: client, community: community, language: "en"}); manager.on("sentOfferChanged ", function (offer,oldState) { console.log(`Sent offer changed:` + offer.state);}); sentOfferChanged doesnt emit, the only time it emits something is when I send an offer that needs to be confirmed (ETradeOfferState = 9). Do I have to call doPoll() manually or Iam missing something?
  12. sNIP

    Web logon interval

    Sure? I though that if I need to use steam-community I need to constantly login in in order to not receive "Not logged" in error
×
×
  • Create New...