Files
aiolauncher_scripts/inspiration_quotes-widget.lua
2021-07-29 21:02:05 +03:00

11 lines
294 B
Lua

function onAlarm()
net:getText("https://inspiration.goprogram.ai/")
end
function onNetworkResult(result)
local quote = json:getValue(result, "object string:quote")
local author = json:getValue(result, "object string:author")
ui:showLinesWithAuthors({ quote }, { author })
end