Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local function safe_dl(code, filename)
- if os and os.epoch then
- math.randomseed(os.epoch("utc"))
- else
- math.randomseed(os.time())
- end
- if fs.exists(filename) then
- fs.delete(filename)
- end
- while true do
- local ok = shell.run("pastebin", "get", code, filename)
- if ok then
- print("Saved to " .. filename .. " β ")
- break
- else
- local waitTime = math.random(3, 12)
- print("Downloading " .. filename .. "(" .. code .. ") failed, retrying in " .. waitTime .. "s ...")
- sleep(waitTime)
- end
- end
- end
- safe_dl("yHmNLGBy", "ldb3")
- safe_dl("eFqvv6g2", "rnc3")
- safe_dl("NqpMTSZP", "fission_agent")
- shell.run("bg", "fission_agent")
Advertisement
Add Comment
Please, Sign In to add comment