Tomoli75

Untitled

May 4th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. while true do
  2. local ev = { os.pullEvent() }
  3. if ev[1] == "modem_message" or ev[1] == "rednet_message" then
  4. local file = fs.open('log','a')
  5. file.writeLine(textutils.serialize(ev))
  6. file.close()
  7. end
  8. end
Advertisement
Add Comment
Please, Sign In to add comment