func addMatchCommand(ctx *foosbot.Context, statement *parsing.MatchStatement) string { err := ctx.ExecuteMatch(*statement) if err != nil { panic(err) } total := statement.TeamOneScore + statement.TeamTwoScore return fmt.Sprintf("%d matches registered to history.", total) }