https://rumble.com/v4nlif3-eliza-chatbot-skill-for-the-livingrimoire.html
this skill basically guides the user to find answers from within/ kinda hard to explain, ya gotta try it to understand.
the skill triggers by "listen", and stops automatically after 5 minutes or if you say "shut up" or "chill"
the Eliza class is stored in the AX modules file.
this skill basically guides the user to find answers from within/ kinda hard to explain, ya gotta try it to understand.
the skill triggers by "listen", and stops automatically after 5 minutes or if you say "shut up" or "chill"
Code:
class DiBurstEliza(DiSkillV2):
def __init__(self):
super().__init__()
self.eliza: Eliza = Eliza()
self.trig: str = "listen"
self.off: Responder = Responder("chill", "shut up")
self.timeGate: TimeGate = TimeGate(5)
def set_burst_duration(self, t: int) -> None:
if t < 1:
return
self.timeGate.setPause(t)
def input(self, ear: str, skin: str, eye: str) -> None:
if ear == self.trig:
self.timeGate.openForPauseMinutes()
self.setSimpleAlg("listening")
return
if self.timeGate.isOpen():
if self.off.strContainsResponse(ear):
self.setSimpleAlg("got it")
self.timeGate.close()
return
if not ear:
return
self.setSimpleAlg(self.eliza.respond(ear))
the Eliza class is stored in the AX modules file.