Advertisement
PlowmanPlow

Draconian Reactor Monitor

Jan 4th, 2017
244
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.55 KB | None | 0 0
  1. -- drmon installation script
  2. --
  3. --
  4.  
  5. local libURL = "https://raw.githubusercontent.com/juniorjunior/drmon/master/lib/f.lua"
  6. local startupURL = "https://raw.githubusercontent.com/juniorjunior/drmon/master/drmon.lua"
  7. local lib, startup
  8. local libFile, startupFile
  9.  
  10. fs.makeDir("lib")
  11.  
  12. lib = http.get(libURL)
  13. libFile = lib.readAll()
  14.  
  15. local file1 = fs.open("lib/f", "w")
  16. file1.write(libFile)
  17. file1.close()
  18.  
  19. startup = http.get(startupURL)
  20. startupFile = startup.readAll()
  21.  
  22.  
  23. local file2 = fs.open("startup", "w")
  24. file2.write(startupFile)
  25. file2.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement