// Talk Bot just LOVES to communicate. // v2 can... store stuff. !747 m { static S computerID = getMyComputerID(); static S i; static O object; p { i = "A Talk Bot On Computer " + computerID + "."; makeAndroid(i); } static synchronized S answer(S s) { if (match3("who are you?", s)) return i; if (match3("what is the object?", s)) return structure(object); if (match3("suck the chat", s)) { L lines = getChatHistory(); setObject(lines); return "ok - I'm having " + lines.size() + " line(s)."; } return "hm."; } static void setObject(O o) { object = o; saveLocally("object"); } }