cuts out legacy command manager
fully joins both message and command handlers Signed-off-by: deepCurse <leverplays@gmail.com>
This commit is contained in:
parent
3cd8f3404c
commit
b64a3639f3
22 changed files with 275 additions and 1193 deletions
|
@ -6,13 +6,13 @@ import org.jetbrains.annotations.Nullable;
|
|||
|
||||
import pkg.deepCurse.nopalmo.command.CommandInterface.GuildCommandInterface;
|
||||
import pkg.deepCurse.nopalmo.manager.Argument;
|
||||
import pkg.deepCurse.nopalmo.manager.GuildCommandBlob;
|
||||
import pkg.deepCurse.nopalmo.manager.CommandBlob;
|
||||
|
||||
public class Test implements GuildCommandInterface {
|
||||
|
||||
@Override
|
||||
public String[] getCommandCalls() {
|
||||
return new String[] {"test"};
|
||||
return new String[] { "test" };
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -24,20 +24,20 @@ public class Test implements GuildCommandInterface {
|
|||
public String getHelp() {
|
||||
return "A command used to test various things";
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isNSFW() {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public int getPremiumLevel() {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void runGuildCommand(GuildCommandBlob blob, HashMap<String, Argument> argumentList) throws Exception {
|
||||
blob.getEvent().getChannel().sendMessage("Tested").queue();
|
||||
public void runGuildCommand(CommandBlob blob, HashMap<String, Argument> argumentList) throws Exception {
|
||||
blob.getChannel().sendMessage("Tested").queue();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue