Jump to content
McKay Development
anazyka

Accepting confirmations on different machines.

Recommended Posts

Hi all,

 

I'm trying to setup node-steamcommunity to accept trade offers from my VPS.

 

I just copied simple script from node-steam-tradeoffer-manager:

steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
    if (err) {
        console.log("Steam login fail: " + err.message);
        process.exit(1);
    }

    fs.writeFile('steamguard.txt', steamguard);

    console.log("Logged into Steam");

    manager.setCookies(cookies, function(err) {
        if (err) {
            console.log(err);
            process.exit(1); // Fatal error since we couldn't get our API key
            return;
        }

        console.log("Got API key: " + manager.apiKey);
    });

    steam.startConfirmationChecker(5000, config.sharedSecret); // Checks and accepts confirmations every 30 seconds
});

It works on my local machine (windows 10) - bot is able to accept confirmations.

 

I tried to run this on my VPS (debian) but I'm still getting error:

 

Can't check confirmations: It looks like your Steam Guard Mobile Authenticator is providing incorrect Steam Guard codes. This could be caused by an inaccurate clock or bad timezone settings on your device. If your time settings are correct, it could be that a different device has been set up to provide the Steam Guard codes for your account, which means the authenticator on this device is no longer valid.

fake

I checked every issue on github, every post on forum but still don't know what is going on.

 

On my VPS and local computer I have the same time. I tried to modify time on my vpsy with: " date -s "5 seconds ago"" and " date -s "5 seconds" but it doesn't work.

 

VPS is located in France, my local computer is located in Poland. I also tried with dedicated server from online.de, problem still exists.

 

I added:

console.log(SteamTotp.time());

to my script and I see the same timestamp on both machines.

 

Guys - could you help me?

 

Share this post


Link to post
Share on other sites

Don't do this. Timezones don't matter.

 

When changing Timezones the hours will be deducted/added to the clock but not the seconds, so he'll have to synchronize it himself 

Edited by cookie

Share this post


Link to post
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...