Advertisement
Marlingaming

Downloader

Nov 25th, 2022 (edited)
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local Dir = {"Apps","Documents","API"}
  2. local Downloads = {{"LwXLERXD","startup"},{"AYbvPTBR","System1"},{"","updatehandler"}}--code,file
  3. local API = {{"23bW5mvX","API/UserInt"},{"ayiWTptp","API/OsManager"}}
  4.  
  5. local StartInt_Files = {"API/UserInt","API/OsManager","System1","updatehandler"}
  6.  
  7. local function Download(list)
  8. for i = 1, #list do
  9. shell.run("pastebin","get",list[i][1],list[i][2])
  10. end
  11. end
  12.  
  13. local function WriteFile(name,contents)
  14. local file = fs.open(name,"w")
  15. file.write(contents)
  16. file.close()
  17. end
  18.  
  19. for i = 1, #Dir do
  20. fs.makeDir(Dir[i])
  21. end
  22.  
  23. Download(Downloads)
  24. Download(API)
  25.  
  26. WriteFile("StartInt_files.txt",textutils.serialize(StartInt_Files))
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement