a fan certainly helps.
and yes you can set up repetier to control your fan with gcode. I flashed my AIO with the settings set to be able to control a layer fan.
if you have the layer fan set to be controlled by repetier you need a separate fan that is always on to cool your heat break.
right from the page where you get the information to flash the printer there is information on how to set this up.
' #define DAVINCI 1 // "1" For DAVINCI 1.0, "2" For DAVINCI 2.0 with 1 FAN, "3" For DAVINCI 2.0 with 2 FANS, 4 For AiO (no scanner) '
0 for not Davinci board (like DUE/RADDS)
1 for DaVinci 1.0 (1Fan, 1 Extruder)
2 for DaVinci 2.0 SF (1Fan, 2 Extruders)
3 for DaVinci 2.0 (2Fans, 2 Extruders)
4 for DaVinci AiO (no scanner)
Support for 1.0A and 2.0A: need to change #define MODEL 0 to #define MODEL 1
To repurpose the main Extruder cooling fan to be controlled VIA G-Code instructions M106/M107:
Set REPURPOSE_FAN_TO_COOL_EXTRUSIONS to 1, do not forget to add a fan with power source to cool extruder permanently if you use this option.