Change filament KE

Hello, if I want to change the filament to multi-color printing, the nozzle temperature drops to 140 degrees. How to maintain nozzle temperature when changing filament. I’m using an Orca slicer and I have Moonraker installed.What gcode and where to put it?Thank you