Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot reponds poorly #4

Open
ScarletLovell opened this issue Oct 25, 2018 · 0 comments
Open

Bot reponds poorly #4

ScarletLovell opened this issue Oct 25, 2018 · 0 comments

Comments

@ScarletLovell
Copy link

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;
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant