Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see>Galatea.ChatBots.Alice</see> class.
        /// </summary>
        public Alice(Galatea.AI.Abstract.IUser user, string chatbotName, string chatbotAliceConfigFolder, string chatbotResourcesFolder) : base(chatbotName)
        {
            userName = user.Name;
            aimlBot  = new AIMLBot.Bot();

            // Validate Folders
            ValidateFolders(chatbotAliceConfigFolder, chatbotResourcesFolder);

            // Initialize AIMLBot2.5 Properties
            aimlBot.LoadSettings(chatbotAliceConfigFolder);
            aimlBot.PathToAIML = Path.Combine(chatbotResourcesFolder, "alice");

            aimlBot.LoadAIMLFromFiles();
            aimlBot.DefaultPredicates.UpdateSetting("name", userName);

            // Initialize Chat runtime
            aimlUser = new AIMLBot.User(userName, aimlBot);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see>Galatea.ChatBots.Alice</see> class.
 /// </summary>
 public Alice(Galatea.AI.Abstract.IUser user, string chatbotName) :
     this(user, chatbotName, Settings.Default.ChatbotAliceConfigFolder, Settings.Default.ChatbotResourcesFolder)
 {
 }