Node version of the lottery manager.