Skip to content

Commit 7903563

Browse files
committed
Use proper constant values
This is why breaks are important, I committed my previous changes while being hungry... Set realistic constant values for CLEAN_CHANNELS_AMOUNT and MINIMUM_CHANNELS_AMOUNT so that more channels are kept in the archive. Signed-off-by: Chris Sdogkos <work@chris-sdogkos.com>
1 parent 11d2f53 commit 7903563

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

application/src/main/java/org/togetherjava/tjbot/features/voicechat/DynamicVoiceChat.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public final class DynamicVoiceChat extends VoiceReceiverAdapter {
3737
// I will leave this here as a constant since I don't see a justification for naming
3838
// this category name into something different.
3939
private static final String ARCHIVE_CATEGORY_NAME = "Voice Channel Archives";
40-
private static final int CLEAN_CHANNELS_AMOUNT = 2;
41-
private static final int MINIMUM_CHANNELS_AMOUNT = 3;
40+
private static final int CLEAN_CHANNELS_AMOUNT = 25;
41+
private static final int MINIMUM_CHANNELS_AMOUNT = 50;
4242

4343
private final VoiceChatCleanupStrategy voiceChatCleanupStrategy;
4444
private final List<Pattern> dynamicVoiceChannelPatterns;

0 commit comments

Comments
 (0)