Skip to content

Commit 75c7d27

Browse files
committed
reduce thresholds for different star emojis
1 parent ae85828 commit 75c7d27

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎src/main/java/net/discordjug/javabot/systems/starboard/StarboardManager.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,12 @@ private void updateStarboardMessage(@NotNull Message message, long stars, @NotNu
224224
}
225225
} else {
226226
UnicodeEmoji starEmote = config.getEmojis().get(0);
227-
if (stars > 10) starEmote = config.getEmojis().get(1);
228-
if (stars > 25) starEmote = config.getEmojis().get(2);
227+
if (stars > 5 && config.getEmojis().size() > 1) {
228+
starEmote = config.getEmojis().get(1);
229+
}
230+
if (stars > 10 && config.getEmojis().size() > 2) {
231+
starEmote = config.getEmojis().get(2);
232+
}
229233
starboardMessage.editMessage(
230234
String.format("%s %s | %s", starEmote, stars, message.getChannel().getAsMention()))
231235
.queue();

0 commit comments

Comments
 (0)