Advertisement
devomaa

Untitled

May 8th, 2020
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 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. print(textutils.serialize(ev))
  6. file.writeLine(textutils.serialize(ev))
  7. file.close()
  8. end
  9. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement