SilentWarrior

dl

Nov 23rd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.44 KB | None | 0 0
  1. local args = {...}
  2.  
  3.  
  4.  
  5.  
  6.  
  7. function update()
  8.     local fileName = shell.getRunningProgram()
  9.     local paste = "1JgHefeA"
  10.     term.setCursorPos( 1, -5 )                        -- Hide the pastebin retrivial
  11.     shell.run( "rm", fileName )                       -- Delete the current program
  12.     shell.run( "pastebin", "get", paste, fileName )   -- Update it
  13.     shell.run( fileName )                             -- Restart it
  14. end
  15.  
  16. while true do
  17.     local
  18.  
  19. end
Add Comment
Please, Sign In to add comment