Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modem = peripheral.wrap("top")
- shell.run("clear")
- print("What would you like to say?")
- print(" ")
- newmsg = read()
- modem.transmit(68,69,newmsg)
- modem.open(69)
- shell.run("clear")
- print("Your message has been sent!")
- event, side, chan, rchan, msg, dist = os.pullEvent("modem_message")
- if msg == "Received!" then
- print("Your message has been received!")
- else
- print("An invalid message has been returned.")
- print("Your message probably has not been received.")
- end
- sleep(2)
- print(" ")
- print("Rebooting...")
- sleep(3)
- shell.run("reboot")
Add Comment
Please, Sign In to add comment