Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local chat = peripheral.wrap("left")
  2. local online = rs.getInput("back")
  3.  
  4. while true do
  5.   if online == true then
  6.     local event, user, message = os.pullEvent("chat")
  7.     local h = fs.open("chat.log", "a")
  8.     h.writeLine(user..": "..message)
  9.     h.close()
  10.     sleep(0)
  11.   end
  12.  
  13.   online = rs.getInput("back")
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement