File tree Expand file tree Collapse file tree
application/src/main/java/org/togetherjava/tjbot/commands/tags Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,17 +45,18 @@ public TagsCommand(TagSystem tagSystem) {
4545
4646 @ Override
4747 public void onSlashCommand (@ NotNull SlashCommandEvent event ) {
48- // TODO A list might be better than comma separated, which is hard to read
4948
5049 ArrayList <String > list = new ArrayList <>(tagSystem .getAllIds ());
50+
5151 if (list .size () > 200 ) {
52+
5253 Logger logger = Logger .getLogger (TagsCommand .class .getName ());
54+
5355 logger .setLevel (Level .WARNING );
5456 logger .warning ("- WARNING - TAGS ARE BEYOND 200 LINES " );
5557 }
5658
57- event
58- .replyEmbeds (MessageUtils .generateEmbed ("All available tags" ,
59+ event .replyEmbeds (MessageUtils .generateEmbed ("All available tags" ,
5960 "* " + String .join ("\n " ,
6061 list .stream ().sorted ().collect (Collectors .joining ("\n * " ))),
6162 event .getUser (), TagSystem .AMBIENT_COLOR ))
You can’t perform that action at this time.
0 commit comments