...check out some tutorials and take a look at some other bots people have made. Some good builders are: Infinite, Sage and Pyscolone.