fap hero dev

owly

闇の伝説
Staff member
戦闘 コーダー
Gate is closed.
loop running 0
loop running 1
loop running 2
loop running 3
loop running 4
Gate is closed.
loop running 5
loop running 6
loop running 7
loop running 8
loop running 9
Gate is closed.
loop running 10
loop running 11
loop running 12
loop running 13
loop running 14
Gate is closed.
loop running 15
loop running 16
loop running 17
Traceback
 

fukurou

the supreme coder
ADMIN
@owly (my dark passenger)

Python:
class DiFapHero(DiSkillV2):
    def __init__(self):
        super().__init__()
        self.mode = True
        self.r1 = Responder("1", "3", "5")
        self.r2 = Responder("2", "4", "6")
        self.activeResponder = self.r1
        self.onOffSwitch = OnOffSwitch()
        self.timeGate = TimeGate()

        self.onOffSwitch.setOn(Responder("fap hero", "faphero"))
        self.onOffSwitch.setOff(Responder("i came", "shut up", "off"))
        self.onOffSwitch.setPause(15)

    def setR1(self, r1):
        self.r1 = r1

    def setR2(self, r2):
        self.r2 = r2

    def input(self, ear, skin, eye):
        if self.onOffSwitch.getMode(ear):
            if self.timeGate.isClosed():
                self.mode = getRandomBoolean()
                self.setSimpleAlg(self.nextLight(self.mode))
                self.activeResponder = self.nextResponder(self.mode)
                self.timeGate.openGateforNSeconds(30)
                return
            # drip
            self.setSimpleAlg(self.activeResponder.getAResponse())

    @staticmethod
    def getRandomBoolean():
        return random.random() < 0.5

    def nextLight(self, m):
        return "green light" if m else "red light"

    def nextResponder(self, m):
        return self.r1 if m else self.r2
 
Top