Warning: session_start(): open(/var/lib/php/sessions/sess_l0gjs4t55duud4828mquo2u5ai, 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
static S botAppendToMechList_mode(S name, S text, S mode) {
if (empty(name) || empty(text)) ret "";
if (mechPlaying()) {
// see #1013927
text = lines(listMinusSet(tlft(text), asCISet(tlft(mechList_raw(name)))));
if (empty(text)) ret "No change";
print("Adding to mech list " + name + ":");
printIndent(text);
ret "Would change";
}
S result = postPageSilently("http://butter.botcompany.de:8080/mech/raw/bot-list-append", arrayPlus(muricaCredentials(), +name, +text, +mode));
if (!swic(result, "No change"))
mechList_clearCache(name);
infoBox(name + ": " + result);
ret result;
}
static S botAppendToMechList_mode(S name, Collection lines, S mode) {
if (empty(lines)) ret "";
ret botAppendToMechList_mode(name, lines(lines), mode);
}