You can achieve similar results to a bot by using "Wheating" or "Baby Farms":

Supercell has a well-publicized zero-tolerance policy toward cheating. Their Fair Play policy explicitly prohibits bots, macros, automation software, and any third-party tools that interact with the game client. Detection methods include:

Beyond the technical risks, using automation software violates . Their detection systems are quite sharp; using a bot often leads to a permanent ban, wiping out all the legitimate progress you've made. The Ethics and Impact of Automation in Gaming

GitHub is the most legitimate source. Search for: