Jump to content


Photo

Tradeoffer manager not working for me.

node.js node-steam-tradeoffer-manager

  • Please log in to reply
4 replies to this topic

#1 KubekSzklany

KubekSzklany

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 25 January 2019 - 10:19 AM

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");
});


#2 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,187 posts

Posted 25 January 2019 - 05:50 PM

You never called TradesManager.setCookies



#3 KubekSzklany

KubekSzklany

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 26 January 2019 - 03:43 PM

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...


#4 Dr. McKay

Dr. McKay

    Developer

  • Administrator
  • 2,187 posts

Posted 26 January 2019 - 06:57 PM

Check the setCookies callback for errors.



#5 KubekSzklany

KubekSzklany

    Newbie

  • Member
  • Pip
  • 3 posts

Posted 27 January 2019 - 05:49 AM

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.







Also tagged with one or more of these keywords: node.js, node-steam-tradeoffer-manager

2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users