The best place to start creating bots is with the starcraft API. THis is available at https://github.com/Blizzard/s2client-api This contains examples tutorials on how to create a starcraft 2 bots
PySC2
The deepmind python library: https://github.com/deepmind/pysc2 is a great place to start for running minigames, and using machine learning techniques to overcome challenges.