This commit is contained in:
batchprogrammer314
2021-08-21 13:36:10 -05:00
parent d86a42eab6
commit 84f3918c25
20 changed files with 317 additions and 186 deletions

View File

@@ -1,5 +1,6 @@
package net.nuggetmc.ai.command.commands;
import com.jonahseguin.drink.annotation.Autofill;
import com.jonahseguin.drink.annotation.Command;
import com.jonahseguin.drink.annotation.OptArg;
import com.jonahseguin.drink.annotation.Sender;
@@ -82,6 +83,10 @@ public class AICommand extends CommandInstance {
agent.addUser(sender);
}
public IntelligenceAgent getSession() {
return agent;
}
@Command(
name = "stop",
desc = "End a currently running AI training session."
@@ -157,6 +162,7 @@ public class AICommand extends CommandInstance {
});
}
@Autofill
public List<String> infoAutofill(CommandSender sender, String[] args) {
if (args.length == 2) {
return manager.fetchNames();