Warning: session_start(): open(/var/lib/php/sessions/sess_kf5m452kqkoo06ob1ve5v4klpe, 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
abstract sclass AbstractSayAndInputBot2 extends AbstractSayAndInputBot implements Runnable {
LS inputQueue = synchroLinkedList();
F1 isYes = f isYes_1;
new LinkedHashSet facts;
new LinkedHashSet assumptions;
*() {
input = f getInput;
}
void remember(S fact) {
if (facts.add(fact))
print("[Bot learned:] " + fact);
}
void assume(S fact) {
if (assumptions.add(fact))
print("[Bot assumes:] " + fact);
}
S getInput() {
while (empty(inputQueue))
sleep(10);
ret trim(popFirst(inputQueue));
}
bool yes() {
ret callF(isYes, input());
}
}