Hi, sry to bother you. I have this problem where in my working machine it is working perfectly but in my server it's just not working. I have tried disabling my firewall, debugging the app, rewriting the code but still not being called in my server but in my working machine it is.
let playDefault = 730;
module.exports.logIn = function (cb) {
console.log('[Bot] Starting Bot...');
client.logOn(logOptions);
console.log('[Bot] Logging into Steam...');
client.on('loggedOn', () => {
console.log('[Bot] Logged into Steam');
client.setPersona(SteamUser.Steam.EPersonaState.LookingToTrade);
client.gamesPlayed(playDefault);
if (cb != null)
cb();
else
console.log('It was null :/');
});
};
client.on('error', function(e) {
console.log('Steam Error: ');
console.log(e);
});
client.on('webSession', (id, cookies) => {
console.log('\n\nwebSession!!!!!!!!!!!!!!');
console.log(cookies);
manager.setCookies(cookies);
community.setCookies(cookies);
community.startConfirmationChecker(1000, 'removed')
});
'use strict';
const SteamUser = require('steam-user');
const SteamTotp = require('steam-totp');
const SteamCommunity = require('steamcommunity');
const TradeManager = require('steam-tradeoffer-manager');
const request = require('request');
const steamapikey = 'key';
const client = new SteamUser();
const community = new SteamCommunity();
const manager = new TradeManager({
steam: client,
community: community,
language: 'en'
});
const logOptions = {
accountName: 'user',
password: 'password',
twoFactorCode: SteamTotp.generateAuthCode('secret')
};