Skip to content

Commit

Permalink
Add "FreePackagesLimit" config setting alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Citrinate committed Jul 18, 2024
1 parent ac1eb06 commit a05f6f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FreePackages/FreePackages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ public async Task OnBotInitModules(Bot bot, IReadOnlyDictionary<string, JsonElem
break;
}

case "FreePackagesPerHour" when configProperty.Value.ValueKind == JsonValueKind.Number: {
case "FreePackagesPerHour" or "FreePackagesLimit" when configProperty.Value.ValueKind == JsonValueKind.Number: {
packageLimit = configProperty.Value.GetUInt32();
bot.ArchiLogger.LogGenericInfo("Free Packages Per Hour : " + packageLimit.ToString());
bot.ArchiLogger.LogGenericInfo("Free Packages Limit : " + packageLimit.ToString());
break;
}

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Under certain conditions, activating a free package while playing a game on Stea
---

### Changing the hourly package limit
### Changing the package limit

A maximum of 30 packages can be activated per 1.5 hours. By default, this plugin will use at most 25 of those 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:

Expand Down

0 comments on commit a05f6f8

Please sign in to comment.