Warning: session_start(): open(/var/lib/php/sessions/sess_34o9koktr23v00kmsgejkkibu1, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
cmodule CurrentTimeDialog > DynSayAndInputBot {
class TimeBot extends AbstractSayAndInputBot2 implements Runnable {
class WhatCanYouDo > Attractor {
public bool matches(S s) {
ret matchX2("what can you do...|what is your skill|who are you", s);
}
public void run { say("I can tell you the time"); }
}
class TalkToMe extends Attractor {
public bool matches(S s) {
ret matchX2("talk to me|hi|talk|say something", s);
}
public void run { run_public(); }
}
class DoItAgain extends Attractor {
public bool matches(S s) {
ret matchX2("do it again|again|another time", s);
}
public void run { sayTime(); }
}
class WhatsTheTime extends Attractor {
public bool matches(S s) {
ret matchX2("what's the time|tell me the time|time", s);
}
public void run { sayTime(); }
}
class Yes_SayTime extends Attractor {
public bool matches(S s) {
ret isYes_1(s);
}
public void run { sayTime(); }
}
class SayOK extends Attractor {
public bool matches(S s) {
true;
}
public void run { say("OK"); }
}
*() {
addPreprocessors(f ai_dropLeadingAndTrailingAppellations_sortedByLength);
standardAttractors(new DoItAgain, new WhatsTheTime, new TalkToMe, new WhatCanYouDo);
}
public void run {
say("Do you want to know the current time?");
addAttractor(new Yes_SayTime);
addLowPrioAttractor(new SayOK);
}
void sayTime {
say("It is " + localTime_24());
}
}
TimeBot makeBot() { ret new TimeBot; }
}