unfinished commit
help is in a half written state and command manager may be unstable due to unfinished checks with optional wildcard arguments, rewrite pending Signed-off-by: deepCurse <leverplays@gmail.com>
This commit is contained in:
parent
a5027a1790
commit
addfa80197
6 changed files with 239 additions and 115 deletions
31
src/pkg/deepCurse/nopalmo/command/commands/general/Test.java
Normal file
31
src/pkg/deepCurse/nopalmo/command/commands/general/Test.java
Normal file
|
@ -0,0 +1,31 @@
|
|||
package pkg.deepCurse.nopalmo.command.commands.general;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
import pkg.deepCurse.nopalmo.command.CommandInterface.GuildCommandInterface;
|
||||
import pkg.deepCurse.nopalmo.manager.Argument;
|
||||
import pkg.deepCurse.nopalmo.manager.GuildCommandBlob;
|
||||
|
||||
public class Test implements GuildCommandInterface {
|
||||
|
||||
@Override
|
||||
public String[] getCommandCalls() {
|
||||
return new String[] {"test"};
|
||||
}
|
||||
|
||||
@Override
|
||||
public HelpPage getHelpPage() {
|
||||
return HelpPage.TESTING;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getHelp() {
|
||||
return "A command used to test various things";
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runGuildCommand(GuildCommandBlob blob, HashMap<String, Argument> argumentList) throws Exception {
|
||||
blob.getEvent().getChannel().sendMessage("Tested").queue();
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue