kovakovi2000

_SETUP

Oct 31st, 2025 (edited)
572
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.75 KB | None | 0 0
  1. local function safe_dl(code, filename)
  2.     if os and os.epoch then
  3.         math.randomseed(os.epoch("utc"))
  4.     else
  5.         math.randomseed(os.time())
  6.     end
  7.     if fs.exists(filename) then
  8.         fs.delete(filename)
  9.     end
  10.     while true do
  11.         local ok = shell.run("pastebin", "get", code, filename)
  12.         if ok then
  13.             print("Saved to " .. filename .. " βœ…")
  14.             break
  15.         else
  16.             local waitTime = math.random(3, 12)
  17.             print("Downloading " .. filename .. "(" .. code .. ") failed, retrying in " .. waitTime .. "s ...")
  18.             sleep(waitTime)
  19.         end
  20.     end
  21. end
  22.  
  23. safe_dl("yHmNLGBy", "ldb3")
  24. safe_dl("eFqvv6g2", "rnc3")
  25. safe_dl("NqpMTSZP", "fission_agent")
  26. shell.run("bg", "fission_agent")
Advertisement
Add Comment
Please, Sign In to add comment