Пример #1
0
        /// <summary>
        /// deals with the "srai" tag
        /// </summary>
        /// <param name="thisNode">the "srai" node in question</param>
        /// <param name="thisCat">the current category</param>
        /// <param name="myBot">the bot whose graphmaster returned the "template"</param>
        /// <param name="sUserID">the user who requires a reply</param>
        /// <returns>the string that results in the processing of this node</returns>
        private static string srai(XmlNode thisNode, cCategory thisCat, cBot myBot, string sUserID)
        {
            string    sNode   = thisNode.InnerText;
            cResponse myReply = myBot.chat(sNode, sUserID);
            string    sReply  = "";

            foreach (string sSentence in myReply.alOutput)
            {
                sReply += sSentence + " ";
            }
            return(sReply);
        }
Пример #2
0
		/// <summary>
		/// deals with the "srai" tag
		/// </summary>
		/// <param name="thisNode">the "srai" node in question</param>
		/// <param name="thisCat">the current category</param>
		/// <param name="myBot">the bot whose graphmaster returned the "template"</param>
		/// <param name="sUserID">the user who requires a reply</param>
		/// <returns>the string that results in the processing of this node</returns>
		private static string srai(XmlNode thisNode, cCategory thisCat, cBot myBot, string sUserID)
		{
			string sNode=thisNode.InnerText;
			cResponse myReply = myBot.chat(sNode, sUserID);
			string sReply="";
			foreach(string sSentence in myReply.alOutput)
			{
				sReply+=sSentence+" ";
			}
			return sReply;
		}