package akane.command.core;

import akane.Akane;
import akane.utils.HelpIndex;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;

public interface CommandInterface {
	void main(String[] args, MessageReceivedEvent event);
	boolean isSafe(String[] args, MessageReceivedEvent event);
	
	default boolean isHelp(String[] args) {
		return !isArgsEmpty(args) && isFirstArgHelp(args);
	}

	default void status(CommandContainer cmd, boolean success, MessageReceivedEvent event) {
		Akane.CommandLog(cmd, success, event);
	}

	default void getHelp(CommandContainer cmd, MessageReceivedEvent event) {
		event.getChannel().sendMessage(HelpIndex.getHelp(cmd)).queue();
	}

	static boolean isArgsEmpty(String[] args) {
		return args.length == 0;
	}
	//mudar isso depois
	static boolean isFirstArgHelp(String[] args) {
		return args[0].equals("help");
	}
}

@@ -346,48 +346,61 @@
 rn !
-isArgsEmpty(args) && isFirstArgHelp(args
+(args.length == 0) && args%5B0%5D.equalsIgnoreCase(%22help%22
 );%0A%09
@@ -685,186 +685,6 @@
 %09%7D%0A%0A
-%09static boolean isArgsEmpty(String%5B%5D args) %7B%0A%09%09return args.length == 0;%0A%09%7D%0A%09//mudar isso depois%0A%09static boolean isFirstArgHelp(String%5B%5D args) %7B%0A%09%09return args%5B0%5D.equals(%22help%22);%0A%09%7D%0A
 %7D%0A

change isHelp