Skip to content

Commit 58157e6

Browse files
authored
Create rednetListener.lua
Rescued from history and edited
1 parent c302aff commit 58157e6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/rednetListener.lua

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
local modem = peripheral.find("modem")
2+
modem.open(rednet.CHANNEL_REPEAT)
3+
4+
while true do
5+
local _,_, from, to, message = os.pullEvent("modem_message")
6+
print(from, to, textutils.serialise(message))
7+
end

0 commit comments

Comments
 (0)