Money is a tool of exchange, which cant exist unless there are goods produced and men able to produce them.
And what happens when the goods and services are provided by machines? What use does money have then?
Then money will become a tool of exchange for the machines.