CCCPaste

InfiniteReboot

local monitor = peripheral.find("monitor")
local delay = 2

function ScreamingFace()
    --Left eje
    paintutils.drawPixel(5,3, colors.white)
    paintutils.drawPixel(4,4, colors.white)
    --Right eye
    paintutils.drawPixel(20,3, colors.white)
    paintutils.drawPixel(21,4, colors.white)
    
    --Mouth
    paintutils.drawLine(5,10, 7,9 , colors.white)
    paintutils.drawLine(7,9, 10,10 , colors.white)
    paintutils.drawLine(10,9, 17,9 , colors.white)
    paintutils.drawLine(17,9, 20,10 , colors.white)
end

while (true) do
    term.setBackgroundColour(colors.black)
    term.setTextColour(colors.green)
	term.clear()
    
    term.setCursorPos(1,1)
    sleep(delay)
    print("[I] Initiating reboot secuence.")
    sleep(delay)
    print("[I] Checking internal memory.")
    sleep(delay)
    term.setTextColour(colors.yellow)
    print("[W] Memory corruption detected, starting recovery procedure.")
    sleep(delay)
    term.setTextColour(colors.red)
    print("[Err] FATAL ERROR.")
    sleep(delay)
    
    term.setBackgroundColour(colors.red)
	term.clear()
    ScreamingFace()
    sleep(0.05)
    term.setBackgroundColour(colors.black)
	term.clear()
    ScreamingFace()
    sleep(0.05)
    term.setBackgroundColour(colors.red)
	term.clear()
    ScreamingFace()
    sleep(0.05)
    term.setBackgroundColour(colors.black)
	term.clear()
    ScreamingFace()
    sleep(0.05)
end