!7 cmodule LaughAboutJokes > DynPrintLogAndEnabled { long historical, hysterical; switchable double timeout = 20.0; start { ownResource(onActiveOrPassiveSpeechRecognized(s -> { if (!enabled) ret; if (cic(s, "histor")) setField(historical := now()) if (cic(s, "hyster")) setField(hysterical := now()); if (recent(historical) && recent(hysterical)) { infoBox("Hahaha hystorical/hysterical joke"); laugh(); setFields(historical := 0, hysterical := 0); } })); } }