Warning: session_start(): open(/var/lib/php/sessions/sess_9svpv0a07959uuppih8t9nk3vb, 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 JList lRelBots;
static RelBot bot;
PersistentLister > MyLister {
S name;
}
p {
subst(); ttWordWrap(); centerHigherConsole(); saveConceptsQuietly(); db();
swing {
lRelBots = jlist();
addToWindowSplitRight_aggressive(consoleFrame(),
withTitle("Rel Bots",
centerAndSouth(lRelBots,
jline(jbutton("New Bot...", f newBot)))));
onDoubleClick(lRelBots, r(S name) { setBot(uniq(MyLister, +name), false) });
}
updateList();
setAll(botIfMain2(), newLineAboveAnswer := true, newLineBelowAnswer := true);
}
answer { try answer callAnswerMethod(bot, s); }
svoid newBot {
final JTextField tfName = jtextfield();
showFormTitled("New Bot",
'Name, tfName,
r {
setBot(uniq(MyLister, name := getTextTrim(tfName)), true);
});
}
svoid setBot(MyLister bot, bool updateList) {
main.bot = new RelBot(bot);
consoleTitleStatus(bot.name);
if (updateList) updateList();
}
svoid updateList { fillListWithStrings(lRelBots, sorted(collect(MyLister, 'name))); }