Warning: session_start(): open(/var/lib/php/sessions/sess_n61b74n4depvgqdbdl12487kns, 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
please include function nohupJavax.
concept Suggestion {
long date;
S text;
S author;
S actionCode;
}
static Suggestion showing;
static ReliableSingleThread rstUpdate = new(f updateImpl);
p-subst {
defaultFrameTitle("Suggestion");
autoRestart();
db();
botWithInput("Suggestion Master.",
[=[ me suggests hello with action [[infoBox("hello")]] ]=]);
}
answer {
if "* suggests * with action *" {
cnew(Suggestion, date := now(), text := $2, author := $1, actionCode := $3);
rstUpdate!;
ret "OK";
}
}
svoid updateImpl {
Suggestion latest = highestByField(list(Suggestion), 'date);
if (latest != showing) {
showing = latest;
showSuggestion_master(showing.text, r { optimizedJavaEval(showing.actionCode) });
}
}