dvnt Posted June 17 Report Share Posted June 17 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.logOn(logOnOptions); 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? Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted June 17 Report Share Posted June 17 TradeOfferManager won't do anything until you call setCookies on it, which will fail if your account is limited. Quote Link to comment Share on other sites More sharing options...
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.