Advertisement
Marlingaming

CC Tweaked CCSPS Iron - Web Server

Feb 1st, 2022
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. local Address = "n"--web address, dont include any spaces
  2. local TargetFile = "example" --file to get web design from.
  3.  
  4. function Loop()
  5. local a, b
  6. repeat
  7. a, b = rednet.receive()
  8. until b == "web_request"
  9. local file = fs.open(TargetFile,"r")
  10. local Contents = file.readAll()
  11. file.close()
  12. rednet.send(a,Contents)
  13. Loop()
  14. end
  15.  
  16. rednet.host("1000",Address)
  17. Loop()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement