Hey, i'm running Bots with your API for 1year now and today, something happen, that never happed before. Before maintenance it was the last `webLogOn()` aka `The web cookies have been set!`. The bot was running arround 24hours more (but i think we delayed accepting tradeoffers etc.) and stopped working anything. "Not logged in" on getReceivedItems callback. After this `webSession` never get fired again. I have a setInterval for doing webLogon, but this aswell not worked.
let logincredentials = function () {
return (
{
"accountName": botconfig.account,
"password": botconfig.password,
"twoFactorCode": SteamTotp.generateAuthCode(botconfig.sharedsecret)
});
};
function steamReconnect() {
try {
if (client.steamID) {
client.webLogOn();
} else {
client.logOn(logincredentials());
}
} catch (e) {
logging.error('steamReconnect', e);
}
}
client.on("loggedOn", function (a) {
logging.info("loggedOn", "The Bot has logged in!");
});
client.on("webSession", function (a, {
manager.setCookies(b, function (error) {
if (error) {
logging.error("webSession", "setCookies error: " + error);
process.exit(1);
} else {
community.setCookies(;
community.startConfirmationChecker(polling_interval, botconfig.identifysecret);
logging.info("webSession", "The web cookies have been set!");
manager.doPoll();
}
})
});
community.on("confKeyNeeded", function (a, {
logging.error("confKeyNeeded", "confKeyNeeded");
let time = Math.floor(Date.now() / 1000);
b(null, time, SteamTotp.getConfirmationKey(botconfig.identifysecret, time, a))
});
setInterval(function () {
steamReconnect();
}, 900000); Im completly clueless.. I have a log of `confKeyNeeded` Errors after this. There is nothing in the Logs. No Try/Catch Error, expect the `confKeyNeeded`. Maybe you have an Idea, where the problem could be.