From cf92e7146745b424877a0406b6cdb747b63c7943 Mon Sep 17 00:00:00 2001 From: erius0 <63460770+erius0@users.noreply.github.com> Date: Fri, 8 Jan 2021 17:47:57 +0300 Subject: [PATCH] Update linkedGet.lua --- linkedGet.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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