Mybot.run / ClashFarmer / Etc.
ALL bots run the chance of you getting banned, period. You can lower your chances by doing a few things.
1.Stick to bots that use simulated touches and don't force input.
2.Stay low in trophies especially if you are using your bot to "farm" resources.
3.DO NOT set the bot up to run 24/7, EVER. This is not how a normal player plays, and can be noticed easily.
4.Don't brag about how you never need resources, flex on global, etc. Shouldn't have to be said but some people are just that, ya know..
5.A little luck.
As i said you run the chance of being banned on any game using anything like a bot or cheat for that matter.
You just have to play it as smart as you can and hope for the best. Good luck!