Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local tArgs = { ... }
- local files = { }
- files.update = {
- paste = "ENRVjPSR",
- desc = "You're loking at it! Update programs to latest version"
- }
- files.excavate = {
- paste = "DyCQ1q5G",
- desc = "Modified excavate program with a few extra options"
- }
- files.quarry = {
- paste = "nsMZBEMy",
- desc = "Automatic Quarry: quarry the whole world!"
- }
- files.harvest = {
- paste = "vmJmPWWA",
- desc = "Harvest 4 crops around the turtle and place into a chest below. No fuel used!"
- }
- if #tArgs == 1 then
- name = tArgs[1]
- shell.run("rm "..name)
- shell.run("pastebin get "..files[name].paste.." "..name)
- elseif #tArgs == 2 then
- print(tArgs[1]..':')
- print(" Pastebin: "..files[tArgs[1]].paste)
- print(" About: "..files[tArgs[1]].desc)
- else
- print("Chibu's ComputerCraft Programs:")
- for name,info in pairs(files) do
- print(" "..name)
- end
- print(" ")
- print("Usage: update [name] [info]")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement