Ranger15

mine

Apr 28th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 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
Add Comment
Please, Sign In to add comment