RumbleFrog

CC Todo List

Oct 29th, 2016
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.77 KB | None | 0 0
  1. term.clear()
  2. term.setCursorPos(1, 1)
  3.  
  4. print("Scanning files for incompatibility... -22%-")
  5. if (fs.exists("todo")) then
  6.   print("Incompatible, remove the file named todo")
  7.   error()
  8. end
  9. if (fs.exists("tasks")) then
  10.   print("Is this the tasks program from a older todo program?")
  11.   print(" Y/N")
  12.   yn = read()
  13.   if (yn == "n") or (yn == "N") then
  14.     print("Please delete it.")
  15.     error()
  16.   end
  17. else
  18.   print("")
  19.   print("Downloading file 1/2.                 -36%-")
  20.   shell.run("pastebin", "get", "HcKjGgNy", "tasks")
  21.   sleep(0.1)
  22. end
  23.  
  24. print("")
  25. print("Downloading file 2/2.                 -68%-")
  26. shell.run("pastebin", "get", "ns8BpJqP", "todo")
  27. sleep(0.1)
  28.  
  29. print("")
  30. print("Download complete, run the file todo with a monitor on its side.")
  31. error()
Add Comment
Please, Sign In to add comment