did stuff

This commit is contained in:
Julian Brammer 2024-07-02 17:48:52 +02:00
parent 51a9fdfc1e
commit fa36a36177

View File

@ -72,8 +72,10 @@ end
function addTutelToTutelServer()
local tutelServer = getTutelServerAddress()
local telegramInfo = getTelegramInfo()
http.post(tutelServer .. "/tutel/add?label=" .. os.getComputerLabel() .. "&telegramUserId=" .. telegramInfo["telegramUserId"], "")
telegramNotifier("Added Tutel to your Account: " .. os.getComputerLabel())
local label = os.getComputerLabel()
local escapedLabel = string.gsub(label, "-", "\\-")
http.post(tutelServer .. "/tutel/add?label=" .. label .. "&telegramUserId=" .. telegramInfo["telegramUserId"], "")
telegramNotifier("Tutel was added to your Account: " .. escapedLabel)
end
function splitStringToArray(inputStr)