| Conditions | 1 |
| Total Lines | 7 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | package com.github.netkorp.overridebasiccommand.commands; |
||
| 30 | @Override |
||
| 31 | public void execute(Update update) { |
||
| 32 | StringJoiner stringJoiner = new StringJoiner(System.lineSeparator()); |
||
| 33 | stringJoiner.add("Commands:"); |
||
| 34 | commandManager.getAvailableFreeCommands() |
||
| 35 | .forEach(command -> stringJoiner.add(String.format("%s - <b>%s</b>", command.command(), command.description()))); |
||
| 36 | bot.sendMessage(stringJoiner.toString(), update.getMessage().getChatId(), true); |
||
| 37 | } |
||
| 49 |