Update linkedGet.lua
This commit is contained in:
parent
9d9f855acd
commit
cf92e71467
1 changed files with 5 additions and 3 deletions
|
@ -6,6 +6,8 @@ local tunnel = component.tunnel
|
|||
|
||||
local success = "console: команда выполнена успешно"
|
||||
local fail = "console: неизвестная команда - пиши help"
|
||||
local erius = "b7585fb7-1ea4-4f94-b1a2-05e1cef76a1f"
|
||||
local DummyWalrus = "0952a2dd-23fa-4dd2-aefe-92e7cd6c77ce"
|
||||
|
||||
function getTime()
|
||||
local handle = internet.request("http://api.timezonedb.com/v2.1/get-time-zone?key=INWE0H77BDN6&by=zone&zone=Europe/Moscow&format=json")
|
||||
|
@ -35,9 +37,9 @@ function handleMessage(msg)
|
|||
end
|
||||
|
||||
function getUser(from)
|
||||
if from == "b7585fb7-1ea4-4f94-b1a2-05e1cef76a1f" then
|
||||
if from == erius then
|
||||
return "erius"
|
||||
elseif from == "0952a2dd-23fa-4dd2-aefe-92e7cd6c77ce" then
|
||||
elseif from == DummyWalrus then
|
||||
return "DummyWalrus"
|
||||
else
|
||||
return "???"
|
||||
|
@ -54,5 +56,5 @@ while true do
|
|||
local f = io.open("logs.txt", "a")
|
||||
f:write(log.."\n")
|
||||
f:close()
|
||||
tunnel.send(answer)
|
||||
tunnel.send(from, answer)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue