Jump to content
McKay Development

newOffer and limited account

Recommended Posts

const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeOfferManager = require('steam-tradeoffer-manager');

const secrets = require('./2fasecrets.json');

const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeOfferManager({
    steam: client,
    community: community,
    language: 'en',
    pollInterval: 10000

const logOnOptions = {
  accountName: secrets.username,
  password: secrets.password,
  twoFactorCode: SteamTotp.generateAuthCode(secrets.shared_secret)


client.on('loggedOn', () => {
  console.log('Logged into Steam');

client.on('friendMessage', (steamid, message) => {
  console.log(`Message from ${steamid}: ${message}`);

manager.on('newOffer', offer => {
    console.log("New offer #" + offer.id + " from " + offer.partner.getSteamID64());


friendMessage is working fine, being able to receive any messages from anyone. But I'm having problems with newOffer, sending offers and never getting their information to be displayed on the terminal. Is this due to steam lags? An error in my code? The fact I haven't spent $5 on the account to unlimit it?

Link to comment
Share on other sites

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.

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.

  • Create New...