NeOzay

download lib

Aug 4th, 2021 (edited)
112
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local os = require("os")
  2. local filesystem = require("filesystem")
  3. local component = require("component")
  4. local shell = require("shell")
  5.  
  6. local disk_drive = component.disk_drive
  7.  
  8. local floppy = filesystem.proxy(disk_drive.media())
  9.  
  10. floppy.makeDirectory("/home")
  11. floppy.makeDirectory("/home/lib")
  12. floppy.makeDirectory("/bin")
  13. floppy.setLabel("my Lib")
  14. filesystem.mount(floppy, "/floppy")
  15.  
  16. local lib = {
  17.     relay = "4Y5A1at8",
  18.     patternFind = "eKPEE2wK",
  19.     textObject = "4xUqyezT",
  20.     color = "uSRLg7D2",
  21.     button = "qHfbQ8xp",
  22.     panel = "ed0bzuGS"
  23. }
  24. local bin = {
  25.     makeDoc = "yiWkaU1p",
  26.     getMethods = "siZENpNx"
  27. }
  28. shell.setWorkingDirectory("/floppy/home/lib")
  29. for name, pastID in pairs(lib) do
  30.     os.execute("pastebin get -f " .. pastID .. " " .. name .. ".lua")
  31. end
  32.  
  33. shell.setWorkingDirectory("/floppy/bin")
  34. for name, pastID in pairs(bin) do
  35.     os.execute("pastebin get -f " .. pastID .. " " .. name .. ".lua")
  36. end
  37.  
  38. shell.setWorkingDirectory("/home")
RAW Paste Data