Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- term.clear()
- term.setCursorPos(1,1)
- args = {...}
- if args[1] then
- modem = peripheral.wrap(args[1])
- else
- modem = peripheral.find("modem")
- end
- local dupe = {}
- print("----- Rednet Spy by Lucasx150 -----")
- modem.open(rednet.CHANNEL_REPEAT)
- print("Opened on Channel:", rednet.CHANNEL_REPEAT)
- term.setCursorPos(1,5)
- while true do
- local _, _, _, replyChannel, message = os.pullEvent("modem_message")
- if not dupe[message.nMessageID] then
- print(replyChannel, " " .. string.char(16) .. " ", message.nRecipient, ":", textutils.serialise(message.message))
- dupe[message.nMessageID] = true
- end
- end
Add Comment
Please, Sign In to add comment