Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- os.pullEvent = os.pullEventRaw
- term.clear()
- term.setCursorPos(1,1)
- captainPassword = "31415926"
- firstOfficerPassword = "CkPwFo1890!"
- debugPassword = "CkPwDb1890!"
- user = ""
- sleepTime = 1
- terminateSleepTime = 1
- print("Bridge Computer")
- write("Password: ")
- input = read("*")
- if input == captainPassword then
- user = "Captain WhiteBear"
- print("Access Granted, "..user.."!")
- os.sleep(sleepTime)
- shell.run("bridgeProgram")
- elseif input == firstOfficerPassword then
- user = "First Officer Kai"
- print("Access Granted, "..user.."!")
- os.sleep(sleepTime)
- shell.run("bridgeProgram")
- elseif input == debugPassword then
- print("Exiting program...")
- sleep(terminateSleepTime)
- term.clear()
- term.setCursorPos(1, 1)
- else
- print("Access denied!")
- sleep(sleepTime)
- os.reboot()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement