AnonymusHochgenuss

updatecom

Feb 21st, 2020
867
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function connectiontest()
  2. if fs.exists("testfile") then
  3. fs.delete("testfile")
  4. end
  5. shell.run("pastebin get f8JpQz2h testfile")
  6. if fs.exists("testfile") then
  7. pastebin="true"
  8. fs.delete("updatecom")
  9. shell.run("pastebin get vqd5zi1n updatecom")
  10. shell.run("clear")
  11. print("connection to pastebin success")
  12. else
  13. pastebin="false"
  14. shell.run("clear")
  15. print("connection to pastebin failed")
  16. print("")
  17. print("Try again to connect")
  18. write("Re-connect in: ")
  19. textutils.slowPrint("3..2..1")
  20. sleep(1)
  21. end
  22. end
  23. connectiontest()
  24. while pastebin == "false" do
  25. connectiontest()
  26. end
Add Comment
Please, Sign In to add comment