CobraOs

Untitled

Nov 8th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. --[[
  2. 5
  3. --]]
  4.  
  5. code = "ifh32b7j"
  6.  
  7. local response = http.get(
  8. "http://pastebin.com/raw.php?i="..code
  9. )
  10. response.readLine()
  11. sresponse = tonumber(response.readLine())
  12. response.close()
  13. file = fs.open(shell.getRunningProgram(), "r")
  14. file.readLine()
  15. mynum = tonumber(file.readLine())
  16. file.close()
  17.  
  18. if sresponse > mynum then
  19. shell.run("delete", shell.getRunningProgram())
  20. shell.run("pastebin", "get", code, shell.getRunningProgram())
  21. end
Add Comment
Please, Sign In to add comment