/// <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); }
public bool OnSendLine(HistoryLine line) { return true; }