Update linkedGet.lua

This commit is contained in:
erius0 2021-01-08 03:35:28 +03:00 committed by GitHub
parent 97dcd6acfb
commit b864d95f41
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,10 @@ function os.dateRL(format)
end
while true do
local _, _, _, _, _, message = event.pull("modem_message")
local date = os.dateRL("%x %X")
print("[ "..date.." ]"..message)
local log = "["..os.dateRL("%x %X").."]".." "..message
print(log)
local f = io.open("file.txt","w")
f:write("file contents")
f:close()
tunnel.send("succes!")
end