add refillcore and fix help

This commit is contained in:
ChomeNS
2023-03-24 16:46:34 +07:00
parent ac8ab4d74d
commit 40f936090f
4 changed files with 51 additions and 3 deletions

View File

@@ -98,11 +98,10 @@ public class HelpCommand implements Command {
final String prefix = bot.chatCommandHandler().prefix();
final String commandName = args[0];
for (Command command : bot.commandHandler().commands()) {
if (!command.name().equals(commandName) && !command.alias().contains(commandName)) continue;
if (!command.name().equals(args[0]) && !command.alias().contains(args[0])) continue;
final String commandName = command.name();
final List<Component> usages = new ArrayList<>();
usages.add(