Hi folks! I’m just getting set up with my lil picroft and have successfully added a tiny custom skill that works just fine. However I’m now trying to figure out how to implement the entire reason I got Mycroft…making it respond “it’s party time” when asked what time it is (this is dumb, I know).
I’d like to just edit the datetime skill to do exactly what it does now, except to first respond “it’s party time” upon being asked. Not sure how I want to trigger the actual time response after that, yet - whether to have that behavior always happen (just on a delay) or require some insistence (e.g. the words “no really” + one of the regular utterances). I honestly don’t care, whatever y’all think is easiest I’ll do!
I pointed the datetime skill to my own repo rather than the real skill, and I think this is a job for converse(), but I can’t quite figure out what I’m doing. So far I’ve only tried a couple things when adding this to the init.py:
def converse(self, utterances, lang):
# num_asks += 1
# if num_asks <= 1:
# self.speak_dialog(‘it’s party time’)
# return False
(tried the commented-out stuff with a num_asks = 0 definition in init, as well as the function without the counter. the counter was my attempt to handle the need to be re-asked before mycroft will give up the time).
I feel like this should be easy so I’d love anyone’s help!