add multiple prefixes and cspy prefixes

totallynotskidded™ some codes from ChipmunkBot™
This commit is contained in:
ChomeNS
2023-03-25 13:33:56 +07:00
parent e9fa84c93e
commit 94b7fe8ec8
19 changed files with 376 additions and 26 deletions

View File

@@ -96,7 +96,7 @@ public class HelpCommand implements Command {
public Component sendUsages (CommandContext context, String[] args) {
final Bot bot = context.bot();
final String prefix = bot.chatCommandHandler().prefix();
final String prefix = context.prefix();
for (Command command : bot.commandHandler().commands()) {
if (!command.name().equals(args[0]) && !command.alias().contains(args[0])) continue;