-
-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
application/src/main/java/org/togetherjava/tjbot/config/HelperPruneConfig.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package org.togetherjava.tjbot.config; | ||
|
||
|
||
/** | ||
* Config for automatic pruning of helper roles, see | ||
* {@link org.togetherjava.tjbot.features.help.AutoPruneHelperRoutine}. | ||
* | ||
* @param roleFullLimit if a helper role contains that many users, it is considered full and pruning | ||
* must occur | ||
* @param roleFullThreshold if a helper role contains that many users, pruning will start to occur | ||
* to prevent reaching the limit | ||
* @param pruneMemberAmount amount of users to remove from helper roles during a prune | ||
* @param inactivateAfterDays after how many days of inactivity a user is eligible for pruning | ||
* @param recentlyJoinedDays if a user is with the server for just this amount of days, they are | ||
* protected from pruning | ||
*/ | ||
public record HelperPruneConfig(int roleFullLimit, int roleFullThreshold, int pruneMemberAmount, | ||
int inactivateAfterDays, int recentlyJoinedDays) { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters