Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function connectiontest()
- if fs.exists("testfile") then
- fs.delete("testfile")
- end
- shell.run("pastebin get f8JpQz2h testfile")
- if fs.exists("testfile") then
- pastebin="true"
- fs.delete("updatecom")
- shell.run("pastebin get vqd5zi1n updatecom")
- shell.run("clear")
- print("connection to pastebin success")
- else
- pastebin="false"
- shell.run("clear")
- print("connection to pastebin failed")
- print("")
- print("Try again to connect")
- write("Re-connect in: ")
- textutils.slowPrint("3..2..1")
- sleep(1)
- end
- end
- connectiontest()
- while pastebin == "false" do
- connectiontest()
- end
Add Comment
Please, Sign In to add comment