Jump to content
McKay Development

Recommended Posts

Posted

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...