Non-profit organizations need a license to conduct games of chance. They must register with the New York State Gaming Commission. Afterwards, they must get a license from the New York City Department of Consumer Affairs.
Visit the Games of Chance License page
for more information on how to get a license.