ChatBot issues

Discussion in 'Plugin Development' started by Greyson, Dec 8, 2011.

Thread Status:
Not open for further replies.
  1. Offline


    So I'm making a chatbot plugin that will eventually turn into an AI, but I'm confused about a few things. The two main things ATM are how a player could give a direct response to the chatbot? For example (the chatbot's name is Ava btw) if the user typed "How are you ava?", Ava would then respond with "I'm good, how are you?". I want the player to be able to type "good" or something and have the chatbot recognize it *only then* so how could I go about doing this? Secondly, when you type a known phrase to the chatbot, its response shows up in the chat before the actual phrase goes though :/ How could I solve this? Put it on a timer maybe?
  2. Offline


    Well, the issues you describe are within that realm of AI. You need it to understand the state of a conversation. For a more natural response, you need to have it schedule its output. And to avoid abuse, you should track how often it outputs things, especially repeat things. Otherwise idiot players will say "How are you ava?" rapid-fire just to see Ava help spam the channel with useless stuff.

    As for how to go about "understanding the state of a conversation," I didn't want to go into too much detail about how I'd implement it, but I can imagine a class called Conversation and a Map<String, Conversation> conversations and a call to conversations.containsKey(player.getName())...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 22, 2016
Thread Status:
Not open for further replies.

Share This Page