Jump to content
McKay Development

Recommended Posts

Posted

You're most certainly doing something wrong, nothing "blocks code from executing".

sry couldn't find better word for it, code executes fully but once hour boost starts, loop doesn't start over again so i can't set timer to automatically exit 

Posted

You're done something wrong in your code.

const logOnDetails = {

'dontRememberMachine': false,
'accountName': 'username',
'password': 'password',
'twoFactorCode': SteamTotp.getAuthCode('shared_secret')
}

 

client.on('loggedOn', details => {
    client.getNicknames(() => {
        console.log(`Logged into Steam as '${client.accountInfo.name}' ${client.steamID.getSteam3RenderedID()}`);
        client.setPersona(SteamUser.EPersonaState.Busy);
        client.gamesPlayed(idleList, true, function(){console.log('test')});
        console.log(`Idling`)
    })
})

// Some error occurred during logon
client.on('error', e => console.log(e));
client.logOn(logOnDetails)

i think you still don't understand xD idle works perfectly, but once idling starts, other code stops executing,"idling" gets printed only once, even if i put anything anywhere it executes once, then idling starts and it's just blinking square

Posted (edited)

Yeah, it only gets printed once because you never told it to do anything beyond that point.

i already said "even if i put anything anywhere it executes once"

'finished' is printed out only once, what i'm trying to do here is to automatically exit code when 1 day of idling is reached, i'd set timer to do that but it's executed only once which is not enough oqe2O8YUSxWY83Wek-YjYw.png

Edited by ZuccMarkerberg

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