Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pastebinCode, programName = ...
- local pastebinPrograms = {{pastebinCode, programName}}
- if not pastebinCode then
- -- array of all programms: { {pastebinCode, name}, ... }
- pastebinPrograms = {
- {"gXNbkqEq", "move"},
- {"SBFhJsWE", "inspect"},
- {"6BHSbwQQ", "dropAll"},
- {"hVkMNCvw", "collectLava"},
- {"DPmmbNjZ", "Miner"},
- {"sSK762iy", "Copy"},
- {"DNEwQzVY", "3x3_Tunnler"},
- {"gZnCZ1kD", "LavaLoader"},
- {"05RYAd3T", "Lumberjack"},
- {"St5ykWrZ", "FluidProofer"},
- {"tCqp2NLe", "LavaPlacer"}
- }
- end
- -- function to download the program
- local function downloadProgram(pastebinCode, fileName)
- local command = "pastebin get " .. pastebinCode .. " " .. fileName
- local success, message = shell.run(command)
- end
- -- download all programs from list
- for _, program in ipairs(pastebinPrograms) do
- local code, name = unpack(program)
- downloadProgram(code, name)
- end
- print("All downloads comleted!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement