Jump to content
McKay Development

tacyarg

Member
  • Posts

    3
  • Joined

  • Last visited

Posts posted by tacyarg


  1. function login() {
    if (tryingLogin) return console.log('Already attempting login, try again later.')
    tryingLogin = true
    try {
    user.logOn({
    accountName: bot.username,
    password: bot.password,
    twoFactorCode: SteamTotp.getAuthCode(bot.shared_secret)
    })
    bot.stats.logins += 1
    tryingLogin = false
    setStatus('online')
    } catch (e) {
    tryingLogin = false
    console.error('Failed to run weblogon method.')
    assert(!e, `login failed: ${e.message}`)
    }
    }
×
×
  • Create New...