Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- pastebin declarations ---
- downloads = {
- ["/heirteir/drone/command_buffer"] = "D9eGHxKx",
- ["/heirteir/drone/drone_api"] = "WQqsmx3L",
- ["/heirteir/drone/mining_drone"] = "7QAAJNeR",
- ["/heirteir/libraries/json"] = "4nRg9CHU"
- }
- local function downloadFile(path, pastebin)
- print("loading file to " .. path)
- shell.run("pastebin", "get", pastebin, "path")
- end
- for k, v in pairs(downloads) do
- if not fs.exists(k) then
- downloadFile(k, v)
- os.loadAPI(k)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement