Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- fetcher for scripts found at github.com/ferrisfox/ComputerCraftScripts
- local tArgs = { ... }
- local address = "ferrisfox/ComputerCraftScripts/master/main.lua"
- local cacheBuster = ("%x"):format(math.random(0, 2^30))
- local response = http.get("https://raw.github.com/"..address.."?cb="..cacheBuster, nil, true)
- if not response then
- print( "Fail" )
- return nil
- end
- local func, err = load(response.readAll(), "main.lua", "t", _ENV)
- if not func then
- printError(err)
- return
- end
- local ok err = pcall(func, table.unpack(tArgs))
- if not ok then
- printError( err )
- end
- return
Add Comment
Please, Sign In to add comment