Advertisement
ccbackups

Setup/Download

Jun 19th, 2023 (edited)
2,670
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.25 KB | None | 0 0
  1. -- local r = http.get("https://pastebin.com/raw/jCfCfBPn"); local f = fs.open( shell.resolve( "pastebin" ), "w" ); f.write( r.readAll() ); f.close(); r.close()
  2. -- Define the table with links and program names
  3. local programs = {
  4.   { link = "nFSUKiYE", name = "getLava" },
  5.   { link = "rpXRAZs4", name = "quarry" },
  6. { link = "Es7ie2B3", name = "excavate" },
  7. { link = "bmW5UFWB", name = "basementDigger" },
  8. { link = "gkz5sgZ8", name = "OCM" },
  9. -- { link = "HanjL7Mz", name = "logger" },
  10. -- { link = "nDgxjQas", name = "startup" },
  11. { link = "4BmfBfp3", name = "SuperMiner" },
  12. { link = "6MezVzXF", name = "oreQuarryBlacklist.txt" },
  13. { link = "UrsscJDS", name = "start.lua" },
  14. { link = "VbzaRCbf", name = "Bettertunnel" },
  15. { link = "ws56HwHa", name = "stairs" },
  16. { link = "T6MjERCE", name = "basic" },
  17. { link = "rkAmqH7B", name = "treelogger" },
  18.  
  19.   -- Add more entries as needed
  20. }
  21.  
  22. -- Function to download a program from Pastebin
  23. local function downloadProgram(link, name)
  24.   shell.run("pastebin", "get", link, name)
  25. end
  26.  
  27. -- Loop through the programs table and download each program
  28. for i, program in ipairs(programs) do
  29.   local link = program.link
  30.   local name = program.name
  31.   print("Downloading program: " .. name)
  32.   downloadProgram(link, name)
  33. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement