KubekSzklany Posted January 25, 2019 Report Posted January 25, 2019 Hey. Can someone tell my why my code not gives any info on console? I only see "connected to steam" and nothing more, even if i send trade offer to this steam account. const SteamUser = require('steam-user'); const TradeOfferManager = require('steam-tradeoffer-manager'); const Bot = new SteamUser(); const TradesManager = new TradeOfferManager({steam: Bot, pollInterval: 1000, language: 'pl'}); Bot.logOn({ accountName: "<myaccountname>", password: "<mypassword>" }); Bot.on('loggedOn', () => { console.log("connected to setam"); Bot.setPersona(SteamUser.Steam.EPersonaState.Online); }); TradesManager.on('newOffer', Offer => { console.log("new offer detected"); }); TradesManager.on('unkownOfferSend', Offer => { console.log("new offer detected"); }); Quote
Dr. McKay Posted January 25, 2019 Report Posted January 25, 2019 You never called TradesManager.setCookies Quote
KubekSzklany Posted January 26, 2019 Author Report Posted January 26, 2019 I added this: Bot.on('webSession', (Sid, Cookies) =>{ console.log("web session") TradesManager.setCookies(Cookies);});And "web session" is printed to console, but still not detect new trade offers... Quote
Dr. McKay Posted January 26, 2019 Report Posted January 26, 2019 Check the setCookies callback for errors. Quote
KubekSzklany Posted January 27, 2019 Author Report Posted January 27, 2019 Unable to set trade offer cookies: Access denied.I search in internet and i see that i must have not limited account. So i try with another account, problem solved. 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.