Advertisement
marctew

HeadOffice Lobby Door Lock

Oct 3rd, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. while true do
  2. term.clear()
  3. term.setCursorPos(1, 1)
  4. print("Please Enter OTP Password:")
  5. input = read("*")
  6. local otpcode = http.get("http://marctew.plex.pw:8082/mcotp/test.php")
  7. local otpcodedec = otpcode.readAll()
  8. if input == otpcodedec then
  9. redstone.setOutput("left", true)
  10. sleep(4)
  11. redstone.setOutput("left", false)
  12. os.shutdown()
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement