예제 #1
0
        public string Post(string msg)
        {
            if (string.IsNullOrEmpty(msg))
            {
                return(string.Empty);
            }
            var output = aiml.getOutput(msg);

            aiml.SaveUserInfo();
            return(output);
        }
예제 #2
0
파일: Program.cs 프로젝트: itfaster/AIMLBot
        static void Main(string[] args)
        {
            string input = "start";

            bot = new AIMLBLL();
            while (input != "exit")
            {
                input = bot.getInput();
                var output = bot.getOutput(input);
                Console.WriteLine("Bot: " + output);

                //save userInfo
                bot.SaveUserInfo();
            }
        }