Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local mon = peripheral.find("monitor")
- local adURL = "https://osmarks.ml/py/mc-ad"
- term.clear()
- print("GolCo Advertising Network")
- term.redirect(mon)
- function download()
- return http.get(adURL).readAll()
- end
- function display(text)
- term.setCursorPos(1, 1)
- term.clear()
- print(text)
- end
- function run()
- local ad = download()
- display(ad)
- end
- while true do
- pcall(run)
- sleep(60)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement