Update linkedGet.lua
This commit is contained in:
parent
cf92e71467
commit
b6c7d23a13
1 changed files with 2 additions and 3 deletions
|
@ -48,13 +48,12 @@ end
|
|||
|
||||
while true do
|
||||
local _, _, from, _, _, message = event.pull("modem_message")
|
||||
local answer = handleMessage(tostring(message))
|
||||
local result = handleMessage(tostring(message))
|
||||
local time = getTime()
|
||||
local user = getUser(tostring(from))
|
||||
local log = "["..time.."] "..user..": "..message.."\n".."["..time.."] "..answer
|
||||
local log = "["..time.."] "..user..": "..message.."\n".."["..time.."] "..result
|
||||
print(log)
|
||||
local f = io.open("logs.txt", "a")
|
||||
f:write(log.."\n")
|
||||
f:close()
|
||||
tunnel.send(from, answer)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue