velodrome/transform/plugins/comment_counter.go
func (c *CommentCounterPlugin) ReceiveComment(comment sql.Comment) []Point {
	points := []Point{}
	for _, matcher := range c.matcher {
		if matcher.MatchString(comment.Body) {
			points = append(points, Point{
				Values: map[string]interface{}{
					"comment": 1,
				},
				Date: comment.CommentCreatedAt,
			})
		}
	}
	return points
}
func (c *CommentCounterPlugin) ReceiveComment(comment sql.Comment) []Point {
	points := []Point{}
	for _, matcher := range c.matcher {
		if matcher.MatchString(comment.Body) {
			points = append(points, Point{
				Values: map[string]interface{}{
					"comment": 1,
				},
				Date: comment.CommentCreatedAt,
			})
		}
	}
	return points
}
// ReceiveComment adds matching comments to InfluxDB