private bool isFactoidRemoveRequest(string message, string nick) { string noMention = HandlerUtils.removeMention(message, nick); return(FactoidRemoveExpression.IsMatch(noMention) && HandlerUtils.addressedToMe(message, nick)); }
private bool isTellMessage(string message, string nickName) { string normalizedMessage = HandlerUtils.removeMention(message, nickName); return(HandlerUtils.addressedToMe(message, nickName) && TellExpression.IsMatch(normalizedMessage)); }