A Flintshire cricket club has been given almost £20,000 to help reduce energy costs.