Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Connecting to rednet...")
- local modem = peripheral.find("modem")
- local channel = os.getComputerID()
- if not modem or not modem.isWireless() then
- print("Please attach a wireless modem.")
- sleep(5)
- os.shutdown()
- end
- if not modem.isOpen(channel) then modem.open(channel) end
- if not modem.isOpen(65535) then modem.open(65535) end
- print("Connected to rednet!")
- sleep(1)
Add Comment
Please, Sign In to add comment