Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- rednet.open("top")
- rednet.open("bottom")
- rednet.open("left")
- rednet.open("right")
- rednet.open("front")
- rednet.open("back")
- rednet.broadcast("readmail")
- a, messagep = rednet.receive(1)
- if messagep == null then
- else
- print("You've Got Mail!")
- print("------------------")
- print(messagep)
- end
- write("Do you want to send mail?")
- input = read()
- if input == "yes" then
- rednet.broadcast("sendmail")
- write("To: (ID) ")
- input = read()
- rednet.broadcast(input)
- input = os.getComputerLabel()
- write("From: " .. os.getComputerLabel())
- rednet.broadcast(input)
- print("Message body:")
- input = read()
- rednet.broadcast(input)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement