Warning: session_start(): open(/var/lib/php/sessions/sess_6v6t7dk37tnhlf4d33o1gdimka, 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
!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);
}