Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while true do
- local ev = { os.pullEvent() }
- if ev[1] == "modem_message" or ev[1] == "rednet_message" then
- local file = fs.open('log','a')
- file.writeLine(textutils.serialize(ev))
- file.close()
- end
- end
Add Comment
Please, Sign In to add comment