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", "move1"},
- {"SBFhJsWE", "inspect1"},
- {"6BHSbwQQ", "dropAll1"},
- --{"hVkMNCvw", "collectLava1"},
- --{"DPmmbNjZ", "Miner"},
- --{"DNEwQzVY", "3x3_Tunnler"},
- --{"gZnCZ1kD", "LavaLoader"},
- --{"05RYAd3T", "Lumberjack"},
- --{"St5ykWrZ", "FluidProofer"},
- --{"tCqp2NLe", "LavaPlacer"},
- --{"FSCkCHyq", "BucketLavaCollector"},
- {"ZYU4qakm", "GravelQuarry"},
- {"uHjgNtkQ", "AreaBuilder"},
- {"m5uwNahc", "CactusFarm"}
- }
- end
- -- function to download the program
- local function downloadProgram(pastebinCode, fileName)
- local command = "delete " .. fileName
- local success, message = shell.run(command)
- command = "pastebin get " .. pastebinCode .. " " .. fileName
- 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