Skip to content

Commit 06172e1

Browse files
698: Added "view full leaderboard" message to both weekly update and completed embed messages
1 parent ef142a1 commit 06172e1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/main/java/org/patinanetwork/codebloom/common/components/DiscordClubManager.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) {
113113
114114
The new leaderboard just started, so best of luck to everyone!
115115
116+
View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard?%s=true
117+
116118
Happy LeetCoding,
117119
Codebloom
118120
<%s>
@@ -133,6 +135,8 @@ private void sendLeaderboardCompletedDiscordMessage(final DiscordClub club) {
133135
.map(UserWithScore::getTotalScore)
134136
.map(String::valueOf)
135137
.orElse("N/A"),
138+
club.getName(),
139+
club.getTag().name().toLowerCase(),
136140
serverUrlUtils.getUrl());
137141

138142
var guildId = club.getDiscordClubMetadata().flatMap(DiscordClubMetadata::getGuildId);
@@ -202,6 +206,8 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) {
202206
203207
Just as a reminder, there's %d day(s), %d hour(s), and %d minute(s) left until the leaderboard closes, so keep grinding!
204208
209+
View the full leaderboard for %s users at https://codebloom.patinanetwork.org/leaderboard?%s=true
210+
205211
206212
See you next week!
207213
@@ -228,6 +234,8 @@ private void sendWeeklyLeaderboardUpdateDiscordMessage(final DiscordClub club) {
228234
daysLeft,
229235
hoursLeft,
230236
minutesLeft,
237+
club.getName(),
238+
club.getTag().name().toLowerCase(),
231239
serverUrlUtils.getUrl());
232240

233241
var guildId = club.getDiscordClubMetadata().flatMap(DiscordClubMetadata::getGuildId);

0 commit comments

Comments
 (0)