sclass BakedBot { new SimpleMechLists lists; Class bot; *() { bot = hotwireDependentSharingClasses(#1017706, VirtualMechLists); setOpt(bot, mechLibID := null); //lists.verbose = true; set(callOpt(bot, 'mechMode), readMode := lists); runMain(bot); } S answer(S s) { ret callAnswerMethod(bot, s); } S check(S input, S expectedOutput) { ret assertEqualsVerbose_match(expectedOutput, answer(print("> ", input))); } void setList(S name, S text) { lists.setText(name, text); } void getList(S name) { ret lists.mL_raw(name); } void setAuthorized(bool b) { setOpt(bot, authorized := b); } S answerAuthed(S s) { final bool authedOld = isTrue(getOpt(bot, 'authorized)); setAuthorized(true); tempAfterwards(r { setAuthorized(authedOld); }); ret answer(s); } }