Jump to content
McKay Development

Recommended Posts

Posted (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 by Dr. McKay
Don't post secrets
  • 3 weeks later...

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...