smigger22

Untitled

Oct 26th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. while true do
  2. term.clear()
  3. term.redirect( peripheral.wrap( "bottom" ) )
  4. term.clear()
  5. term.setBackgroundColour( colours.black )
  6. _, s = os.pullEvent( "disk" )
  7. if fs.exists("disk/.details") then
  8. file = fs.open( "disk/.details", "r" ).readAll()
  9. if file == "95a230a17c02d52e2bf7ca45664e1b4f0c68c05fe2f79cd9d1d843f3c40b4020" then
  10. term.setBackgroundColour( colours.green )
  11. disk.eject( "left" )
  12. sleep( 2 )
  13. term.setBackgroundColour( colours.black )
  14. else
  15. term.setBackgroundColour( colours.red )
  16. disk.eject( "left" )
  17. sleep( 2 )
  18. term.setBackgroundColour( colours.black )
  19. end
  20. else
  21. term.setBackgroundColour( colours.red )
  22. disk.eject( "left" )
  23. sleep( 2 )
  24. term.setBackgroundColour( colours.black )
  25. end
  26. end
Advertisement
Add Comment
Please, Sign In to add comment