Skip to content

Commit

Permalink
Merge branch 'main' into 1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed May 29, 2024
2 parents b364836 + da620ad commit c4c50b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions FreePackages/Handlers/PackageQueue.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ internal sealed class PackageQueue : IDisposable {
private Timer Timer;
private readonly ConcurrentQueue<Package> Packages = new();
private const int DelayBetweenActivationsSeconds = 5;
private readonly uint ActivationsPerHour = 40;
private const uint MaxActivationsPerHour = 50; // Steam's imposed limit
private readonly uint ActivationsPerHour = 25;
private const uint MaxActivationsPerHour = 30; // Steam's imposed limit
private bool PauseWhilePlaying = false;

internal PackageQueue(Bot bot, BotCache botCache, uint? packageLimit, bool pauseWhilePlaying) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,10 @@ Under certain conditions, activating a free package while playing a game on Stea

### Changing the hourly package limit

A maximum of 50 packages can be activated per hour. By default, this plugin will use at most 40 of those hourly activations and will resume where it left off if it's ever interrupted. You can control this limit by adding `FreePackagesPerHour` to your individual bot's config files of `uint` type.
A maximum of 30 packages can be activated per hour. By default, this plugin will use at most 25 of those hourly activations and will resume where it left off if it's ever interrupted. You can control this limit by adding `FreePackagesPerHour` to your individual bot's config files of `uint` type.

> [!NOTE]
> I don't recommend raising this value. The default is 40 to let you manually redeem packages without having to fight with the plugin. It's also not always possible for the plugin to tell when it's being rate-limited, and so it's best to avoid ever getting rate-limited.
> I don't recommend raising this value. The default is 25 to let you manually redeem packages without having to fight with the plugin. It's also not always possible for the plugin to tell when it's being rate-limited, and so it's best to avoid ever getting rate-limited.
---

Expand Down

0 comments on commit c4c50b0

Please sign in to comment.