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

@@ -148,7 +148,7 @@ public class MusicCommand implements Command {
}
public Component list (CommandContext context, String[] args) {
final String prefix = context.bot().chatCommandHandler().prefix();
final String prefix = context.prefix();
final Path _path = Path.of(root.toString(), String.join(" ", args));
final Path path = (args.length < 2) ? root : _path;