Refactored bot connection implementations