// Botifier takes a program with an "answer" function and turns it into a bot. !747 m { static S botID = "#1001694"; static S botName = "Points Bot."; p { L tok = javaTok(loadSnippet(botID)); L main = getMainProgram(tok); tokAppend(main, "makeAndroid(" + quote(botName) + ");"); createTempProgram(join(tok), botName); } // destroys the CNC structure but keeps the length intact static void tokAppend(L tok, S text) { tok.set(tok.size()-1, tok.get(tok.size()-1) + text); } }