Conditions | 1 |
Total Lines | 7 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package com.github.netkorp.overridebasiccommand.commands; |
||
20 | @Override |
||
21 | public void execute(Update update, String[] args) { |
||
22 | StringJoiner stringJoiner = new StringJoiner(System.lineSeparator()); |
||
23 | stringJoiner.add("Commands:"); |
||
24 | commandManager.getAvailableNonSecureCommands() |
||
25 | .forEach(command -> stringJoiner.add(String.format("%s - <b>%s</b>", CommandManager.getCommandFullName(command), command.description()))); |
||
26 | bot.sendMessage(stringJoiner.toString(), update.getMessage().getChatId(), true); |
||
27 | } |
||
39 |