ksaw000

JINIT

Jul 4th, 2026 (edited)
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. local filesToDownload = {
  2. { id = "bjTbXkSc", path = "startup.lua" }, -- Use 'startup.lua' to run automatically on boot
  3. { id = "H2CU9zfx", path = "config.lua" },
  4. }
  5. --pastebin get H2CU9zfx config.lua
  6. --pastebin get bjTbXkSc startup.lua
  7.  
  8. for _, file in ipairs(filesToDownload) do
  9. local url = "https://pastebin.com/" .. file.id
  10.  
  11. local response, err = http.get(url)
  12. if response then
  13. local contents = response.readAll()
  14. response.close()
  15.  
  16. local f = fs.open(file.path, "w")
  17. f.write(contents)
  18. f.close()
  19.  
  20. else
  21. printError("Failed to fetch file: " .. tostring(err))
  22. end
  23. end
  24.  
  25.  
  26. os.reboot()
Advertisement
Add Comment
Please, Sign In to add comment