File tree Expand file tree Collapse file tree 2 files changed +12
-5
lines changed
src/main/java/net/javadiscord/javabot/systems/commands Expand file tree Collapse file tree 2 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 99 * Single command housing all leaderboards.
1010 */
1111public class LeaderboardCommand extends DelegatingCommandHandler {
12- public LeaderboardCommand () {
13- this .addSubcommand ("qotw" , new QOTWLeaderboardSubcommand ());
14- this .addSubcommand ("thanks" , new ThanksLeaderboardSubcommand ());
15- this .addSubcommand ("help-xp" , new ExperienceLeaderboardSubcommand ());
16- }
12+ /**
13+ * Leaderboard command handler.
14+ */
15+ public LeaderboardCommand () {
16+ this .addSubcommand ("qotw" , new QOTWLeaderboardSubcommand ());
17+ this .addSubcommand ("thanks" , new ThanksLeaderboardSubcommand ());
18+ this .addSubcommand ("help-xp" , new ExperienceLeaderboardSubcommand ());
19+ }
1720}
Original file line number Diff line number Diff line change 2525
2626import static net .javadiscord .javabot .Bot .imageCache ;
2727
28+ /**
29+ * Command for QOTW Leaderboard.
30+ */
2831public class QOTWLeaderboardSubcommand extends ImageGenerationUtils implements SlashCommand {
2932 private final Color BACKGROUND_COLOR = Color .decode ("#011E2F" );
3033 private final Color PRIMARY_COLOR = Color .WHITE ;
@@ -35,6 +38,7 @@ public class QOTWLeaderboardSubcommand extends ImageGenerationUtils implements S
3538 private final int MARGIN = 40 ;
3639 private final int WIDTH = 3000 ;
3740
41+ @ Override
3842 public ReplyCallbackAction handleSlashCommandInteraction (SlashCommandInteractionEvent event ) {
3943 Bot .asyncPool .submit (() -> {
4044 try {
You can’t perform that action at this time.
0 commit comments