예제 #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
파일: Home.cs 프로젝트: Naarkie/RohBot
 public bool OnSendLine(HistoryLine line)
 {
     return true;
 }