👨‍💻 dev shit asses of fucks

development

fukurou

the supreme coder
ADMIN

Code:
triggers: UniqueItemQ
Chobit
recording:bool= false  # countDown
newCmd = ""

// engage que
//auto engage que
if ear == "" and !rec: fuck away
if !rec :
 if !ear == ""-> newCmd = ear;rec = True;fuck away
# recording:
if !(output == ""): {triggers+newCmd;}
rec = false
 
Last edited:

fukurou

the supreme coder
ADMIN
Code:
triggers: UniqueItemQ
Chobit
recording:bool= false  # countDown
newCmd = ""

// engage que
//auto engage que
if !rec : 
 if !ear == ""-> newCmd = ear;rec = True // not recording and hear something?->record
else{
 if !(output == ""): {triggers+newCmd;} // recording and output detected
 rec = false}
 
Last edited:

fukurou

the supreme coder
ADMIN
Java:
public class DiTriggers extends DiSkillV2 {
    private UniqueItemsPriorityQue triggers = new UniqueItemsPriorityQue();
    private boolean isRecording = false;
    private Brain brain;
    private String newCMD = "";

    public DiTriggers(Brain brain) {
        this.brain = brain;
    }

    @Override
    public void input(String ear, String skin, String eye) {
        if(!isRecording){
            if(!ear.isEmpty()){newCMD = ear;isRecording = true;System.out.println("recording on");} // not recording and hear something so record
        }else {
            if(!brain.getLogicChobitOutput().isEmpty()){triggers.add(newCMD);System.out.println("recorded");System.out.println(newCMD);} // recording and output detected
            isRecording = false;
        }
    }
}
 

owly

闇の伝説
Staff member
戦闘 コーダー
Java:
public class DiTriggers extends DiSkillV2 {
    private final UniqueItemsPriorityQue triggers = new UniqueItemsPriorityQue();
    private boolean isRecording = false;
    private final Brain brain;
    private String newCMD = "";

    public DiTriggers(Brain brain) {
        this.brain = brain;
    }

    @Override
    public void input(String ear, String skin, String eye) {
        if(!isRecording){
            if(!ear.isEmpty()){newCMD = ear;isRecording = true;} // not recording and hear something so record
        }else {
            if(!brain.getLogicChobitOutput().isEmpty()){triggers.add(newCMD);} // recording and output detected
            isRecording = false;
        }
        // trigger output (can add alternative code to do this automatically)
        if(ear.equals("random trigger")){
            setSimpleAlg(triggers.getRNDElement());
        }
    }
}
 

fukurou

the supreme coder
ADMIN
Python:
class DiTriggers(DiSkillV2):
    def __init__(self, brain):
        super().__init__()
        self.triggers: UniqueItemsPriorityQue = UniqueItemsPriorityQue()
        self.is_recording: bool = False
        self.brain: Brain = brain
        self.new_cmd: str = ""

    def input(self, ear, skin, eye):
        if not self.is_recording:
            if ear:
                self.new_cmd = ear
                self.is_recording = True  # not recording and hear something so record
        else:
            if self.brain.getLogicChobitOutput():
                self.triggers.insert(self.new_cmd)
            self.is_recording = False

        # trigger output (can add alternative code to do this automatically)
        if ear == "random trigger":
            self.setSimpleAlg(self.triggers.getRNDElement())
 

fukurou

the supreme coder
ADMIN
Python:
class DiTriggers(DiSkillV2):
    def __init__(self, brain):
        super().__init__()
        self.triggers: UniqueItemsPriorityQue = UniqueItemsPriorityQue()
        self.is_recording: bool = False
        self.brain: Brain = brain
        self.new_cmd: str = ""

    def input(self, ear, skin, eye):
        if not self.is_recording:
            if ear:
                self.new_cmd = ear
                self.is_recording = True  # not recording and hear something so record
        else:
            if self.brain.getLogicChobitOutput():
                self.triggers.insert(self.new_cmd)
            self.is_recording = False

        # trigger output (can add alternative code to do this automatically)
        if ear == "random trigger":
            element = self.triggers.getRNDElement()  # returns None or string
            if element is not None:
                self.setSimpleAlg(element)
 

owly

闇の伝説
Staff member
戦闘 コーダー
as awesome as this unique skill is, I smell it has hidden potential.

think about it, it has a Klain c'tor to the entire Brain, plus it sniffs out all the incantation...
 

fukurou

the supreme coder
ADMIN
hmm
it's a skill with unlimited access to all other skills and the Brain...

on one hand it sniffs out skill triggers, on the other it has access to itself...
 
Top