Skip to content

Bot reponds poorly #4

@ScarletLovell

Description

@ScarletLovell

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions