diff --git a/linkedGet.lua b/linkedGet.lua index 343eff7..57c1f04 100644 --- a/linkedGet.lua +++ b/linkedGet.lua @@ -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