.
This commit is contained in:
parent
ab46ded6d3
commit
79c139a1f8
@ -45,8 +45,12 @@ function readFileAll(file)
|
|||||||
return data
|
return data
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local function getNtfyAddress()
|
||||||
|
return readFileOneline("/brulijam/config/ntfy.txt")
|
||||||
|
end
|
||||||
|
|
||||||
function ntfy(msg)
|
function ntfy(msg)
|
||||||
http.post("https://ntfy.brammer.cc/8DI2nmDPVG6l7A0x", msg)
|
http.post(getNtfyAddress(), msg)
|
||||||
end
|
end
|
||||||
|
|
||||||
function splitStringToArray(inputStr)
|
function splitStringToArray(inputStr)
|
||||||
|
@ -49,6 +49,12 @@ if not (fs.exists("brulijam/task.lua")) then
|
|||||||
end
|
end
|
||||||
shell.run("brulijam/task.lua")
|
shell.run("brulijam/task.lua")
|
||||||
|
|
||||||
|
--create ntfy file (can be changed later)
|
||||||
|
if not (fs.exists("brulijam/config/ntfy.txt")) then
|
||||||
|
file = fs.open("brulijam/config/ntfy.txt", "a")
|
||||||
|
file.writeLine("https://ntfy.brammer.cc/8DI2nmDPVG6l7A0x")
|
||||||
|
file.close()
|
||||||
|
end
|
||||||
|
|
||||||
--execute sync script
|
--execute sync script
|
||||||
shell.run("/brulijam/sync.lua")
|
shell.run("/brulijam/sync.lua")
|
||||||
|
Loading…
Reference in New Issue
Block a user