3urobeat / steam-comment-service-bot

📡 The most advanced Steam Account Manager Bot with mass coordinated comments/likes/favs/follows and plugin support
https://steamcommunity.com/id/3urobeatscommentbot
GNU General Public License v3.0
274 stars 40 forks source link

Add specific cooldown for each bot account #106

Open Ecstasyyy1337 opened 3 years ago

Ecstasyyy1337 commented 3 years ago

If I start more sessions with randomizeAccounts true or just false but I start when same sessions are at bot 0/1/2/3 ( very small delay between them) the accounts get cooldowns that result fails so it would be a fix to add a cooldown on each account after comment sent / failed so that account cannot be used again until that /account cooldown isnt done. Edit: if the 1st session is started and bot 1 commented, the 2nd session its started same time with bot 1 so bot 1 have a cooldown so set session 2 advancedconfig.json account delay is setted to 10 seconds for example, the 2nd session is paused for advancedconfig.json session cooldown 30 seconds for example and after that 30 seconds session will start again.

3urobeat commented 3 years ago

Idea: Could also be done with a queue. globalcommentcooldown will need to be reworked anyway to allow being applied to certain accounts and not the whole bot.

3urobeat commented 2 years ago

Soo I'm finally addressing this, sorry for the long wait.

What I think I'm going to do:

I'm not 100% sure yet how this is affected by randomizeAccounts but since the comment loop checks if the first account commented as the last one in the previous iteration when re-shuffling this should be fine...

This should be the best solution I think

3urobeat commented 2 years ago

On second thought I don't think it is going to help much and will just make everything more complicated.
Accounts can't be used in multiple sessions at the same time and they all get a cooldown so the next time they are used they won't fail instantly.
The same account also can't comment two times back to back with randomizeAccounts set to true because of the check I explained above.

So what I still might be doing is to make a database where each bot account gets a cooldown directly after commenting for three reasons:

However this means we have to rethink how the botaccountcooldown is used as it will make the running session wait for each account to become available again when re-shuffling.
This looks like a medium big problem to solve elegantly.
Edit: Or I just ignore cooldowns during the same session. This would make the bot work the same as it is currently but still give the few benefits from above.

Is this really worth it? Seems like a lot of work for not so much benefits.
I'm not sure, I have to rethink this