osmarks

Untitled

Jan 13th, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. local mon = peripheral.find("monitor")
  2. local textURL = "https://pastebin.com/rqTMqxe9"
  3.  
  4. term.clear()
  5.  
  6. term.redirect(mon)
  7.  
  8. function download()
  9. return http.get(textURL).readAll()
  10. end
  11.  
  12. function display(text)
  13. term.setCursorPos(1, 1)
  14. term.clear()
  15. print(text)
  16. end
  17.  
  18. function run()
  19. local text = download()
  20. display(text)
  21. end
  22.  
  23. while true do
  24. pcall(run)
  25. sleep(60)
  26. end
Add Comment
Please, Sign In to add comment