community scripts refactoring and cleanup

This commit is contained in:
Evgeny
2022-08-27 08:49:29 +03:00
parent 521c6852e0
commit 93990298e8
15 changed files with 72 additions and 42 deletions

View File

@@ -11,14 +11,14 @@ local red = md_colors.red_500
local ip = ""
function on_search(input)
if input:lower():find(string.lower("^ip$")) then
if input:lower():find("^ip$") then
get_ip()
end
end
function on_click()
system:copy_to_clipboard(ip)
end
end
function get_ip()
http:get("https://api.ipify.org")