Warning: session_start(): open(/var/lib/php/sessions/sess_4gms5prp9u2hvdnv8qlmoier84, 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 botEditMechList(S name, S text) {
try {
ifclass VirtualMechLists
O writeMode = mechMode().writeMode;
if (writeMode cast VirtualMechLists) {
writeMode.setText(name, text);
ret name + ": Changed";
}
endif
if (mechPlaying()) {
if (eq(mechList_raw(name), text)) ret "No change";
print("Setting mech list " + name + ":");
printIndent(text);
ret "Would change";
}
S answer = postPageSilently("https://www.botcompany.de/mech/raw/bot-list-edit", arrayPlus(muricaCredentials(), +name, +text));
print(name + ": " + answer);
ret answer;
} finally {
mechList_clearCache(name);
}
}
static S botEditMechList(S name, Collection lines) {
ret botEditMechList(name, lines(lines));
}