Jump to content
McKay Development

Steam service don't working


dgtvc

Recommended Posts

Hi,
I have problem because sometimes bot can't get new "webSession" for even 5h. When i am restarting bot he can login but he can't get cookie.
Is that problem with steam servers? I saw that steam return's "You don't have permission to access "http://steamcommunity.com/XXXXXXXXXXXXXXX/" on this server. Reference #XX.XXXXXXXXXXXXX".
I must set bot for another server by 
changing ip of steam service? Or is there any way to fix it?

Link to comment
Share on other sites

var Steam = require('steam-client');
var SteamUser = require('steam-user');

var steamClient = new Steam.CMClient();

steamClient.bind("xxx.xxx.xxx.xxx");

steamClient.connect();
steamClient.on('connected', function() {
    logger.log("conected to steam!");
    logToSteam();
});

var steam = new SteamUser(steamClient);

var manager = new TradeOfferManager({
    "steam": steam,
    "domain": "localhost",
    "language": "en",
    "pollInterval": 8000
})

var details = {
    "accountName"   : acc_nick,
    "password"      : acc_pass
};

function logToSteam() {
        details = {
            "accountName"   : acc_nick,
            "password"      : acc_pass,
            "twoFactorCode" : SteamTotp.generateAuthCode(acc_secret)
        };
        sha_sentry = require('fs').readFileSync('sentry_'+acc_nick+'.hash');
        steam.setSentry(sha_sentry);
        steam.logOn(details);
}

Using it like that will work?

Link to comment
Share on other sites

var Steam = require('steam-client');
var SteamUser = require('steam-user');

var steamClient = new Steam.CMClient();

steamClient.bind("xxx.xxx.xxx.xxx");

steamClient.connect();
steamClient.on('connected', function() {
    logger.log("conected to steam!");
    logToSteam();
});

var steam = new SteamUser(steamClient);

var manager = new TradeOfferManager({
    "steam": steam,
    "domain": "localhost",
    "language": "en",
    "pollInterval": 8000
})

var details = {
    "accountName"   : acc_nick,
    "password"      : acc_pass
};

function logToSteam() {
        details = {
            "accountName"   : acc_nick,
            "password"      : acc_pass,
            "twoFactorCode" : SteamTotp.generateAuthCode(acc_secret)
        };
        sha_sentry = require('fs').readFileSync('sentry_'+acc_nick+'.hash');
        steam.setSentry(sha_sentry);
        steam.logOn(details);
}

Using it like that will work?

 

 

Yes, although you don't need to connect the CMClient before you log on with SteamUser. Just call client.bind(ip); and then you can immediately do user.logOn(details);

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.

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