public bool CanRespond(SlackMessage context) { if (this.Scorebook == null || this.TeamID != context.TeamID) { // start up scorebook for this team this.TeamID = context.TeamID; this.Scorebook = new Scorebook(TeamID); } // put the scorebook in context in case someone wants to see the scoreboard context.Set <Scorebook>(this.Scorebook); return(!context.Message.User.IsSlackbot && Regex.IsMatch(context.Message.Text, SCORE_REGEX)); }