kkagill Posted August 30, 2023 Report Share Posted August 30, 2023 After Steam completes its Tuesday maintenance and reconnects, I've noticed that the confirmation check runs twice. Here's a snippet from the debugger: Quote Checking confirmations Can't check confirmations: Not Logged In Checking confirmations Can't check confirmations: Oh nooooooes! Checking confirmations [INFO] Bot: 4 Websession created and cookies set Checking confirmations Checking confirmations .... Checking confirmations Checking confirmations It's clear from the post-reconnection logs that the "Checking confirmations" command is being executed twice concurrently. How can I modify it to run just a single time, as it used to? Code this.client.on('webSession', (_, cookies) => { this.manager.setCookies(cookies, (err) => { if (err) { if (envVars.NODE_ENV === 'development') { Log.error("Bot: " + this.botNumber + " An error occurred while setting cookies:" + err); } } if (envVars.NODE_ENV === 'development') { Log.info("Bot: " + this.botNumber + " Websession created and cookies set"); } this.process(); }); this.community.setCookies(cookies); this.community.startConfirmationChecker(envVars.BOT_CONFIRMATION_TIME, this.identitySecret); //this.client.on('debug', (msg) => console.log(msg)); this.community.on('debug', (msg) => console.log(msg)); }); Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 30, 2023 Report Share Posted August 30, 2023 Quote Link to comment Share on other sites More sharing options...
kkagill Posted August 31, 2023 Author Report Share Posted August 31, 2023 (edited) Thanks, but i mean if I use `acceptConfirmationForObject` will it solve my problem after websession reconnects from steam maintenance? (being executed twice concurrently) Checking confirmations Checking confirmations Also seems like that method is asking for a objectID. Do I need to grab trade offer id and run this method one by one? acceptConfirmationForObject(identitySecret: Buffer | string | null, objectID: any, callback: Callback): any; The `startConfirmationChecker` function was incredibly helpful. It automatically executed all outstanding tasks, streamlining the process for us. Edited August 31, 2023 by kkagill Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted August 31, 2023 Report Share Posted August 31, 2023 52 minutes ago, kkagill said: Also seems like that method is asking for a objectID. Do I need to grab trade offer id and run this method one by one? Yes. You should already have the offer ID handy when you sent or accepted a trade offer. Quote Link to comment Share on other sites More sharing options...
kkagill Posted September 15, 2023 Author Report Share Posted September 15, 2023 Hi @Dr. McKay , so during the tuesday maintenance the SteamUser client tried to relogin automatically. I found that It eventually logged in, but when I terminated the bot and tried to login I got a rate limit error. I was able to login the next day. In this case, should I gracefully terminate the bot with SIGINT before the tuesday maintenance starts and restart it maybe 15 minutes later? I'm curious how other people are dealing with this. Quote Link to comment Share on other sites More sharing options...
Dr. McKay Posted September 15, 2023 Report Share Posted September 15, 2023 There was a Steam update that broke things in steam-user this week, which could have caused a rate limit error. Make sure everything is up to date and you should be fine. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.