Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local input = read("*")
- if input == risp then
- term.clear()
- term.setCursorPos(1,4)
- print("Apertura porte in corso...")
- drivec.move(1,false,true)
- sleep(opentime)
- os.reboot()
- end
- if input == risp2 then
- term.clear()
- term.setCursorPos(1,6)
- print("Chiudendo sessione...")
- write("Sistema di sicurezza riattivato")
- sleep(2)
- elseif input == risp3 then
- break
- else
- print("Inserire una risposta valida")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement