Update linkedGet.lua

This commit is contained in:
erius0 2021-01-08 04:46:52 +03:00 committed by GitHub
parent 632b8d3566
commit ae97bb4276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -42,7 +42,7 @@ end
while true do while true do
local _, _, from, _, _, message = event.pull("modem_message") local _, _, from, _, _, message = event.pull("modem_message")
local answer = handleMessage(tostring(message)) local answer = handleMessage(tostring(message))
local log = "["..os.dateRL("%x %X").."] "..getUser(tostring(from))..": "..message.."\n".."["..os.dateRL("%x %X").."] "..answer) local log = "["..os.dateRL("%x %X").."] "..getUser(tostring(from))..": "..message.."\n".."["..os.dateRL("%x %X").."] "..answer
print(log) print(log)
local f = io.open("logs.txt", "a") local f = io.open("logs.txt", "a")
f:write(log.."\n") f:write(log.."\n")