Warning: session_start(): open(/var/lib/php/sessions/sess_i6o1u83qglkdclbm94vjn8t1se, 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
// Talk Bot just LOVES to communicate.
// v2 can... store stuff.
!747
m {
static S computerID = getMyComputerID();
static S i;
static O object;
p {
i = "A Talk Bot On Computer " + computerID + ".";
makeAndroid(i);
}
static synchronized S answer(S s) {
if (match3("who are you?", s))
return i;
if (match3("what is the object?", s))
return structure(object);
if (match3("suck the chat", s)) {
L lines = getChatHistory();
setObject(lines);
return "ok - I'm having " + lines.size() + " line(s).";
}
return "hm.";
}
static void setObject(O o) {
object = o;
saveLocally("object");
}
}