This is in the default code if you want to have it per bot add-on,
//Spawning option
hSpawnTooClose = 0;//Doesn't spawn when player is too close and can see it
hSpawnTCRange = 8;//above range, set in brick units
hSpawnClose = 0;//Only spawn when close to a player, can be used with above function as long as hSCRange is higher than hSpawnTCRange
hSpawnCRange = 64;//above range, set in brick units