-- Sarah's MOTD & General use startup program :3

term.clear()
term.setCursorPos(1, 1)


time = os.time("utc")

term.setTextColor(colors.pink)
messageRand = math.random(10)

if os.time() >= 18.5 and math.random(4) == 4 then
  print("Watch out for creepers, hun-")
elseif messageRand == 1 then
  print("I hope you're doing alright, Sar.")
elseif messageRand == 2 then
  print("Knock 'em dead, darling!")
else
  if time > 13 and time < 19 then
    print("Morning, cutie~")
  elseif (time >= 19 and time < 24) or (time <= 4 and time > 0) then
    print("Ready to work, princess?")
  elseif time > 4 and time <= 13 then
    print("What're you doing awake, eepy head?")
  end
end

term.setTextColor(colors.white)

-- Config Check

configFile = io.open("startupConfig.txt", "r")
if configFile ~= nil then
 io.input(configFile)
 startupFile = io.read()
 term.setTextColor(colors.red)
 print("Starting...")
 os.sleep(0.2)
 term.setTextColor(colors.lime)
 print("Started. Have fun~")
 os.sleep(0.3)
 term.setTextColor(colors.white)
 term.clear()
 term.setCursorPos(1, 1)
 shell.run(startupFile)
end