SteamDatabase / BrowserExtension

💻 SteamDB's extension for Steam websites
https://steamdb.info/extension/
BSD 3-Clause "New" or "Revised" License
776 stars 55 forks source link

Free packages rate limiter #82

Closed Revadike closed 3 years ago

Revadike commented 3 years ago

The addition of the Activate these packages now button is cool and very convenient. However, I think it's fair to assume most people don't keep up, resulting in having over 50 packages to redeem. To make it even more convenient, allow people to keep their page open for the redeeming process to keep going while adhering to the rate limit. So, redeem until you're rate limited, wait 1h and continue redeeming the rest of the packages in this fashion. You could even make this feature optional if you want with a checkbox, or a stop button, but I think it ain't needed as people can just leave the page. This feature should be really easy to add and will cost no additional resources for SteamDB. People will still need to manually refresh the page to retrieve an updated filtered list.

xPaw commented 3 years ago

Maybe.

Revadike commented 3 years ago

While we're on the subject. The rate limits are the same as for activating steam keys (but don't share the same cooldown). Which is: 50 successful activations until cooldown, and 10 failed attempts until cooldown.

Though, seems like This product is already available in your Steam library. is counted as failed, yet There was a problem adding this product to your account. is not counted as failed, at least not always. When PurchaseResultDetail=5 it is counted as failed.

The cooldown works as follows: it's a predicate that check your free license activations from the past 1 hour for the criteria as described above.

Revadike commented 3 years ago

https://github.com/DoctorMcKay/node-steam-user/blob/master/enums/EPurchaseResultDetail.js