Barnsley have been drawn at home to Bristol Rovers in the second round of the FA Cup.
The game is due to be played on the final weekend of November.
The Reds won at Port Vale in the first round while the Gas beat non-league Weston Super Mare.
Rovers, Darrell Clarke’s old club, are currently 17th in League One.
They have lost their last six games at Oakwell including a 2-1 league defeat in September.