CavariuX Posted July 12, 2017 Report Posted July 12, 2017 (edited) 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') }; Edited July 13, 2017 by Dr. McKay Don't post secrets Quote
Dr. McKay Posted July 13, 2017 Report Posted July 13, 2017 Make sure your server is able to access api.steampowered.com. Quote
gameboyprinter Posted July 31, 2017 Report Posted July 31, 2017 I'm having the exact same issue. I can ping api.steampowered.com no issue. Quote
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.