Thought I’d post a little bit of code I’ve been using for a while.
I like to semi-afk rat/mine not full-on bot it.
The code below warns you if your drones go idle, if the drones are attacked, you are attacked and perhaps most importantly if someone new turns up in local. Also warns if the ore hold is open and full.
Mostly built using existing code. Enjoy.