public evidence_assoc(AltBot bot, User user, SubQuery query, Request request, 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 UnifibleTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { }
public sapi(AltBot bot, User user, Utils.SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { }
public setstate(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { }
public AIMLConstraintTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : this(bot, user, query, request, result, templateNode, 1) { }
public that(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, int offset) : base(bot, user, query, request, result, templateNode, offset) { }
/// <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 that(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : this(bot, user, query, request, result, templateNode, 1) { }
public response_topic(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { }
private static T GetDictData0 <T>(IList <T> unifiables, string name, int startChars, out bool found) where T : IConvertible { string s = name.Substring(startChars); if (s == "*" || s == "ALL" || s == "0") { StringAppendableUnifiableImpl result = Unifiable.CreateAppendable(); foreach (T u in unifiables) { result.Append(u.ToString()); } found = true; return(PASSTHRU <T>(result)); } int uc = unifiables.Count; bool fromend = false; if (s.StartsWith("-")) { fromend = true; s = s.Substring(1); } int i = Int32.Parse(s); if (i == 0) { if (uc == 0) { found = true; return(PASSTHRU <T>("")); } } int ii = i - 1; if (fromend) { ii = uc - i; } if (uc == 0) { AltBot.writeDebugLine(" !ERROR -star underflow! " + i + " in " + name); found = false; return(PASSTHRU <T>(String.Empty)); } if (ii >= uc || ii < 0) { AltBot.writeDebugLine(" !ERROR -star badindexed 0 < " + i + " < " + uc + " in " + name); found = false; return(unifiables[ii]); } found = true; return(unifiables[ii]); }
public static List <Unifiable> UnifyStars(string target, string source) { var matchVars = new List <object>(); string me = RegExFrom(target, matchVars); MatchCollection mc = Regex.Matches(source, me, RegexOptions.IgnoreCase); if (mc.Count == 0) { if (matchVars.Count == 0) { return(SUCCEED_NOVARS); } AltBot.writeDebugLine("DEBUG9: UnifyStars '" + me + "'!='" + source + "'"); return(null); } if (mc.Count != matchVars.Count) { if (mc.Count == 1) { Match mc1 = mc[0]; if (mc1.Success) { int mcLength = mc1.Length; if (mcLength > 0) { if (mcLength == source.Length) { return(new List <Unifiable>() { source }); } } } AltBot.writeDebugLine("ERROR: UnifyStars '" + me + "'!='" + source + "'"); return(null); } } int mi = 0; var results = new List <Unifiable>(mc.Count); foreach (Match match in mc) { string mv = match.Value; object mp = matchVars[mi]; if (UnifyValues(mp, mv)) { results.Add(mv); } else { return(null); } } return(results); }
/// <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 think(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { IsStarAtomically = false; }
/// <summary> /// Ctor /// </summary> /// <param name="Proc">The Proc 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 LoadingTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { 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 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 sr(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { IsDeterministic = 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 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 StarTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, int idx) : base(bot, user, query, request, result, templateNode) { DefaultIndex = idx; }
public AIMLDictSubstFormatingTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { IsStarAtomically = true; }
/// <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 thatstar(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode, 1) { StarDict = () => CurrentQuery.ThatStars; }
/// <summary> /// Ctor /// </summary> /// <param name="Proc">The Proc 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 root(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, ParentProvider pp) : base(bot, user, query, request, result, templateNode) { GetTargetSettings = pp ?? (() => this.query.TargetSettings); }
/// <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 btxml(AltBot bot, User user, Utils.SubQuery query, Request request, 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 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 aimlexec(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { 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 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 template(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { SelfProcessing = true; }
/// <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 cycrandom(AltBot bot, User user, SubQuery query, Request request, 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 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 say(AltBot bot, User user, Utils.SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { isRecursive = true; }
/// <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 botsetting(AltBot bot, User user, Utils.SubQuery query, Request request, Result result, XmlNode templateNode, string settingGrab) : base(bot, user, query, request, result, templateNode) { SettingToGrab = settingGrab; }
/// <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 filterqa(AltBot bot, User user, Utils.SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { this.isRecursive = true; this.isBoring = true; }
public WebGetFactiodEngine(IEnglishFactiodEngine fallback, AltBot AltBot) { TheBot = AltBot; assertTo = fallback; // ReSharper disable DoNotCallOverridableMethodsInConstructor string named = GetServiceName(); // ReSharper restore DoNotCallOverridableMethodsInConstructor TheBot.AddExcuteHandler(named, AskTextString); }
public AIMLConstraintTagHandler(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, int offset) : base(bot, user, query, request, result, templateNode) { offetFrom = offset; IsStarAtomically = 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 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 format(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, Func <Unifiable, Unifiable> formatter, Func <Unifiable, Unifiable> formattereach) : base(bot, user, query, request, result, templateNode) { UFormatter = formatter; UFormatterE = formattereach; }
/// <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 format_prev(AltBot bot, User user, Utils.SubQuery query, Request request, Result result, XmlNode templateNode, Func <string, string> formatter) : base(bot, user, query, request, result, templateNode) { isRecursive = true; Formatter = formatter; }
public format(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode, Func <string, string> formatter, Func <string, string> formattereach) : base(bot, user, query, request, result, templateNode) { SFormatter = formatter; SFormatterE = formattereach; }
/// <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 lazyClosure(AltBot bot, User user, SubQuery query, Request request, Result result, XmlNode templateNode) : base(bot, user, query, request, result, templateNode) { isRecursive = false; IsTraced = true; }