asteroidsteam

chat

Jan 6th, 2018
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. rednet.open("top")
  2. function send()
  3. while true do
  4. print(">")
  5. input = read()
  6. rednet.broadcast(input)
  7. end
  8. end
  9. function recv()
  10. while true do
  11. id,msg = rednet.receive()
  12. print(msg)
  13. end
  14. end
  15. while true do
  16. parallel.waitForAny(send,recv)
  17. end
Add Comment
Please, Sign In to add comment