INNER CODE UNIT · JavaScript
variance
csfloat/inspect · lib/bot.js:46
const variance = parseInt(Math.random() * 4 * 60 * 1000);
// As of 7/10/2020, GC inspect calls can timeout repeatedly for whatever reason
setInterval(() => {
if (this.csgoClient.haveGCSession) {
this.relogin = true;
this.steamClient.relog();
}
}, 30 * 60 * 1000 + variance);
}
logIn(username, password, auth) {
this.ready = false;
// Save these parameters if we login later
if (arguments.length === 3) {
this.username = username;
this.password = password;