Warning: session_start(): open(/var/lib/php/sessions/sess_8qh7v1dqcdlegfup8pmvllc7ra, 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 DoItAgain extends Attractor {
bool matches(S s) {
ret matchX2("do it again|again|another time", s);
}
public void run { sayTime(); }
}
class WhatsTheTime extends Attractor {
bool matches(S s) {
ret matchX2("what's the time|tell me the time|time", s);
}
public void run { sayTime(); }
}
*() {
addPreprocessors(f ai_dropLeadingAndTrailingAppellations_sortedByLength);
standardAttractors(new DoItAgain, new WhatsTheTime);
}
public void run {
say("Do you want to know the current time?");
if (yes())
sayTime();
else
say("OK");
}
void sayTime {
say("It is " + localTime_24());
}
}
Bot makeBot() { ret new TimeBot; }
}