Open
Description
Bot always respond with "For fun?" or "Something is wrong with my brain." and I can't figure out why. Since the interpreter has no wiki, I'm more forced to create an issue about this.
Doesn't seem like anything is wrong?
public class ChatBot {
private static BotImpl bot;
private static BotRepository br;
private static ChatContext cc;
public static void setup() {
br = new BotRepository(new InMemoryChatContextStorage());
cc = new ChatContext("Bot");
br.setRootPath("./textbot/");
bot = (BotImpl) br.get("alice2");
bot.setChatContext(cc);
bot.setName("Bot");
bot.wakeUp();
}
public static String respond(String request) {
String respond = bot.getRespond(request);
System.out.println(respond);
return respond;
}
}
Metadata
Metadata
Assignees
Labels
No labels