public class DiSayer extends DiSkillV2 {
private AXCmdBreaker cmdBreaker = new AXCmdBreaker("say");
private String command = "";
@Override
public void input(String ear, String skin, String eye) {
command = cmdBreaker.extractCmdParam(ear);
if (!command.isEmpty()){
setSimpleAlg(command);
command = "";
}
}
}
class DiSayer(DiSkillV2):
def __init__(self):
super().__init__()
self.cmdBreaker = AXCmdBreaker("say")
self.command = ""
def input(self, ear, skin, eye):
self.command = self.cmdBreaker.extractCmdParam(ear)
if self.command:
self.setSimpleAlg(self.command)
self.command = ""