/// <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> /// An artificial intelligence method that responds to a text input based on the ALICE algorithm. /// </summary> /// <param name="input"> The text input to process. </param> /// <returns> The text response. </returns> protected override string GetResponse(string input) { AIMLBot.Request aimlRequest = new AIMLBot.Request(input, aimlUser, aimlBot, true); return(aimlBot.Chat(aimlRequest).Output); }