aiml-java-interpreter icon indicating copy to clipboard operation
aiml-java-interpreter copied to clipboard

Bot reponds poorly

Open ScarletLovell opened this issue 7 years ago • 0 comments

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;
    }
}

ScarletLovell avatar Oct 25 '18 01:10 ScarletLovell