Pass LocalBot into modules, avoid static calls.
Remove localbot global