Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x,y = term.getSize()
- local side = "back"
- rednet.open(side)
- if rednet.isOpen(side) == false then
- pritn("Rednet open failed!")
- return
- end
- if fs.exists(".cache") then
- fs.delete(".cache")
- end
- fs.makeDir(".cache")
- local website = "ClassAxion"
- local cPrint = function(text)
- local x2,y2 = term.getCursorPos()
- term.setCursorPos(math.ceil((x / 2) - (text:len() / 2)), y2)
- print(text)
- end
- function redirect(url)
- website = url
- loadWebpage()
- end
- function loadWebpage()
- term.clear()
- term.setCursorPos(1, 1)
- rednet.broadcast(website .. ".ping")
- id, message = rednet.receive()
- cPrint("Server id: " .. id)
- print(message)
- end
- cPrint("Website Explorer")
- redirect(read())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement