Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Event,Person,Message = os.pullEvent("chat")
- h.writeLine(schreiben)
- function schreiben()
- local zeit = os.time()
- zeit = textutils.formatTime(zeit, true)
- write("["..zeit)
- write("] ")
- term.setTextColor(colors.cyan)
- write(Person)
- term.setTextColor(colors.white)
- write("> ")
- print(Message)
- end
- local h = fs.open("chat.log", "a")
- h.writeLine(
- local zeit = os.time()
- zeit = textutils.formatTime(zeit, true)
- write("["..zeit)
- write("] ")
- term.setTextColor(colors.cyan)
- write(Person)
- term.setTextColor(colors.white)
- write("> ")
- print(Message)
- )
- h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement