!752 !include #1002268 // Slack Bot !include #1002578 // Eleu Core just to satisfy dependencies of above static boolean actuallyPost = true; static S botUserName = "eleu_learns_to_think"; static S actualBotUserName = "eleu"; // token user name static Channel channel; p { initSlackBot(); // makes the channel list, but doesn't start any loop channel = channels.get(0); // #talkingbots //channel.postAnswer("I am a puppet!"); print("Please type \"say [bla]\" to make her say things."); Android3 android = new Android3("Eleu Sock Puppet Control"); android.responder = makeResponder(new O() { S answer(S s) { Lisp tree = nlParse(s); new HashMap m; if (nlMatch("say $x", tree, m)) { S line = nlUnparse(m.get("x")); line += " [he made me say that!]"; channel.postAnswer(line); ret "OK, posted!"; } ret null; } }); makeBot(android); }