/// <summary> /// Ctor /// </summary> /// <param name="bot">The bot involved in this request</param> /// <param name="user">The user making the request</param> /// <param name="query">The query that originated this node</param> /// <param name="request">The request inputted into the system</param> /// <param name="result">The result to be passed to the user</param> /// <param name="templateNode">The node to be processed</param> public uppercase(AIMLBot.Bot bot, AIMLBot.User user, AIMLBot.Utils.SubQuery query, AIMLBot.Request request, AIMLBot.Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { }
/// <summary> /// Ctor /// </summary> /// <param name="bot">The bot involved in this request</param> /// <param name="user">The user making the request</param> /// <param name="query">The query that originated this node</param> /// <param name="request">The request inputted into the system</param> /// <param name="result">The result to be passed to the user</param> /// <param name="templateNode">The node to be processed</param> public condition(AIMLBot.Bot bot, AIMLBot.User user, AIMLBot.Utils.SubQuery query, AIMLBot.Request request, AIMLBot.Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { this.isRecursive = false; }
/// <summary> /// Ctor /// </summary> /// <param name="bot">The bot involved in this request</param> /// <param name="user">The user making the request</param> /// <param name="query">The query that originated this node</param> /// <param name="request">The request itself</param> /// <param name="result">The result to be passed back to the user</param> /// <param name="templateNode">The node to be processed</param> public AIMLTagHandler(AIMLBot.Bot bot, AIMLBot.User user, AIMLBot.Utils.SubQuery query, AIMLBot.Request request, AIMLBot.Result result, XmlNode templateNode) : base(bot, templateNode.OuterXml) { this.user = user; this.query = query; this.request = request; this.result = result; this.templateNode = templateNode; this.templateNode.Attributes.RemoveNamedItem("xmlns"); }
/// <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); }