class DiEvent(Skill):
def __init__(self):
super().__init__()
self.event_hour: int = 19
self._e = False
self.declarations = UniqueResponder("put on your nappy", "it is diaper time my little bed wetter","put on your diaper", "diaper your butt so you do not have an accident")
self.convo1 = EventChat(UniqueResponder("you are wearing your diaper","it is not a debate sweety","you need your nappy", "you know you need a diaper"),"i will not wet","i am not wearing a diaper","i am a big boy", "i do not need a diaper","i promise not to wet")
self.convo1.add_items(UniqueResponder("good boy","good", "i am proud of you"),"i wore a diaper","i wore a nappy")
self.convo1.add_items(UniqueResponder("you are being responsible", "you are doing the right thing",
"you are making a good choice"), "i will wear a diaper",
"i will wear a nappy")
self.convo1.add_items(UniqueResponder("that's the spirit", "you are a big help", "you are doing great"),
"i will put on a diaper", "i will put on a nappy")
self.convo1.add_items(UniqueResponder("you are being responsible", "you are doing the right thing",
"you are making a good choice"), "i will wear a diaper",
"i will wear a nappy")
self.convo1.add_items(UniqueResponder("that's the spirit", "you are a big help", "you are doing great"),
"i will put on a diaper", "i will put on a nappy")
self.convo1.add_items(UniqueResponder("you are making a smart decision", "you are being very mature",
"you are showing great responsibility"), "i will use a diaper",
"i will use a nappy")
self.convo1.add_items(UniqueResponder("you are doing the right thing", "you are being very sensible",
"you are making a wise choice"), "i will wear my diaper",
"i will wear my nappy")
self.convo1.add_items(UniqueResponder("you are being very grown-up", "you are making a good decision",
"you are being very responsible"), "i will put on my diaper",
"i will put on my nappy")
self.convo1.add_items(UniqueResponder("you are being very thoughtful", "you are making a good choice",
"you are being very considerate"), "i will use my diaper",
"i will use my nappy")
self.convo1.add_items(
UniqueResponder("you are being very sensible", "you are making a smart choice", "you are being very wise"),
"i will wear a diaper tonight", "i will wear a nappy tonight")
self.convo1.add_items(UniqueResponder("you are being very mature", "you are making a good decision",
"you are being very responsible"), "i will put on a diaper tonight",
"i will put on a nappy tonight")
self.convo1.add_items(UniqueResponder("you are being very thoughtful", "you are making a good choice",
"you are being very considerate"), "i will use a diaper tonight",
"i will use a nappy tonight")
self.convo1.add_items(
UniqueResponder("you are being very sensible", "you are making a smart choice", "you are being very wise"),
"i will wear my diaper tonight", "i will wear my nappy tonight")
self.convo1.add_items(UniqueResponder("you are being very mature", "you are making a good decision",
"you are being very responsible"), "i will put on my diaper tonight",
"i will put on my nappy tonight")
self.convo1.add_items(UniqueResponder("you are being very thoughtful", "you are making a good choice",
"you are being very considerate"), "i will use my diaper tonight",
"i will use my nappy tonight")
self.convo1.add_items(UniqueResponder("you really should wear a nappy", "it's for your own good",
"you'll feel better with a nappy on"), "i don't want to wear a nappy",
"i refuse to wear a diaper")
self.convo1.add_items(UniqueResponder("you need to wear a nappy", "it's important for you to wear a diaper",
"you'll regret not wearing a nappy"), "i won't wear a nappy",
"i won't wear a diaper")
self.convo1.add_items(UniqueResponder("please wear a nappy", "it's necessary for you to wear a diaper",
"you'll be more comfortable with a nappy on"), "i don't need a nappy",
"i don't need a diaper")
self.convo1.add_items(UniqueResponder("you should wear a nappy", "it's best for you to wear a diaper",
"you'll be happier with a nappy on"), "i refuse to wear a nappy",
"i refuse to wear a diaper")
self.convo1.add_items(UniqueResponder("you must wear a nappy", "it's essential for you to wear a diaper",
"you'll thank me for wearing a nappy"), "i won't put on a nappy",
"i won't put on a diaper")
self.convo1.add_items(UniqueResponder("you have to wear a nappy", "it's crucial for you to wear a diaper",
"you'll appreciate wearing a nappy"), "i don't want to put on a nappy",
"i don't want to put on a diaper")
self.convo1.add_items(UniqueResponder("you really need to wear a nappy", "it's vital for you to wear a diaper",
"you'll be glad you wore a nappy"), "i refuse to put on a nappy",
"i refuse to put on a diaper")
self.convo1.add_items(UniqueResponder("you should really wear a nappy", "it's good for you to wear a diaper",
"you'll feel better with a nappy on"), "i don't need to put on a nappy",
"i don't need to put on a diaper")
def set_event_hour(self, hour: int):
if 0 <= hour < 24:
self.event_hour = hour
else:
raise ValueError("Hour must be between 0 and 23")
# override
def input(self, ear: str, skin: str, eye: str):
if not len(ear)>5 :
return
# event reset
if not TimeUtils.getHoursAsInt() == self.event_hour:
self._e = False;return
# time of event:
if not self._e:
self.setSimpleAlg(self.declarations.getAResponse());self._e = True; return
n = self.convo1.response(ear)
if len(n) > 0:
self.setSimpleAlg(n)
return
def skillNotes(self, param: str) -> str:
if param == "notes":
return "This skill initiates a series of dialogues and declarations related to wearing diapers. It resets daily and responds to specific input phrases."
elif param == "triggers":
return "Triggers include phrases related to wearing and discussing diapers, such as 'i will wear a diaper', 'i don't want to wear a nappy'."
return "note unavailable"