Warning: session_start(): open(/var/lib/php/sessions/sess_d0a800u1bke6687bnbka44c6el, 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
sS denkmodulID = #1013938;
sO denkmodul;
static long timeout = 60000;
static int interval = 50;
sS listName = "Katze Speech Recognition Log With Date";
sS outListName = "Katze | Things the phone should say";
p {
doEvery(50, f update);
runInMCVarWithAutoRestart('denkmodul, denkmodulID);
}
static int lastLength = -1;
svoid update {
S data = mL_onServer_rawListText_opt(listName);
if (lastLength < 0) lastLength = l(data);
if (l(data) > lastLength) {
S newStuff = substring(data, lastLength);
lastLength = l(data);
L inputLines = map dropLeadingSquareBracketStuff(whereLeadingSquareBracketStuffContains("phone", nempties(lines(newStuff))));
print("Cat Thinking");
printLinesIndent(inputLines);
new L out;
for (S s : inputLines) {
S a = "";
pcall { a = callAnswerFunction(denkmodul, s); }
if (nempty(a)) out.add(a);
}
appendToMechList(outListName, out);
}
}