Warning: session_start(): open(/var/lib/php/sessions/sess_vdokgng912233r5e59cd7mg39a, 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
static new L thoughtBots;
p {
autoRestart();
typicalDownload();
bot("Smart Bot.");
loadPage_forcedTimeout = 70000;
loadBots(#1010753, #1010821, #1010825);
thoughtBots.add(mc());
stefansChat_onLine_lookback = 2;
stefansChat_onLine_safe(voidfunc(S text) {
print("> " + text);
S answer = scanMultipleBots(thoughtBots, text);
if (nempty(answer))
postToStefansChat(answer);
});
stefansChat_post("Smart Bot Online!");
runInNewThread(#1010793); // Post on UAIP
}
answer {
s = trim(s);
if (eqic(s, "!restart")) { restart(); ret "Yo"; }
if "Are you online?" ret "Yes";
if (eqic(s, "!question"))
ret random_gac36k();
if "give me subtypes of ..."
ret ai_renderNodesList(ai_subtypesOf(m.rest()));
if "show me the ..."
ret "What " + $1 + "?";
if (flexMatch("What do * have?", s, m))
ret ai_renderNodesList(webs_search_dollarX(webFromTriples($1, "have", "$X"), indexedWebs($1)));
if "What is ..."
ret ai_renderNodesList(webs_search_dollarX(webFromTriples($1, "is", "$X"), indexedWebs($1)));
}
svoid loadBots(S... botIDs) {
for (S id : botIDs) pcall {
thoughtBots.add(runSubBot(id));
}
}