Advertisement
samuelask

Update Worker

Dec 18th, 2024
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. -- Update Script for Main.lua
  2. local shell = require("shell")
  3.  
  4. -- Pastebin ID for Main.lua
  5. local pastebin_id = "ZcQTsjgA"
  6. local target_file = "worker.lua"
  7.  
  8. -- Print status
  9. print("Starting update process for Main.lua...")
  10.  
  11. -- Execute the pastebin command to fetch the latest version
  12. local result, reason = shell.execute("pastebin get -f " .. pastebin_id .. " " .. target_file)
  13.  
  14. if result then
  15. print("Update successful! File saved as " .. target_file)
  16. else
  17. print("Update failed. Reason:", reason or "unknown error")
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement