Пример #1
0
        /// <summary>
        /// Used to display supported emoticons on messages sent from RohBot.
        /// </summary>
        public static HistoryLine EmoticonReplace(HistoryLine line)
        {
            var chatLine = line as ChatLine;

            if (chatLine != null && chatLine.UserType == "RohBot")
            {
                chatLine.Content = EmoticonReplace(chatLine.Content);
                return(line);
            }

            var stateLine = line as StateLine;

            if (stateLine != null && stateLine.State == "Action" && stateLine.ForType == "RohBot")
            {
                stateLine.Content = EmoticonReplace(stateLine.Content);
                return(line);
            }

            return(line);
        }
Пример #2
0
 public bool OnSendLine(HistoryLine line)
 {
     return true;
 }