Add Public IP Search Function #2

Merged
sriramsv merged 3 commits from public-ip-search into master 2022-08-27 01:37:21 -04:00
Showing only changes of commit dd7a8b46fa - Show all commits

View File

@@ -1,5 +1,5 @@
-- name = "Public IP Search"
-- description = "Shows your public IP"
-- name = "Public IP"
-- description = "Shows your public IP in the search bar"
-- data_source = "ipify.org"
-- type = "search"
-- author = "Sriram SV"
@@ -11,7 +11,7 @@ local red = md_colors.red_500
local ip = ""
function on_search(input)
if input:lower():find(string.lower("ip")) then
if input:lower():find(string.lower("^ip$")) then
get_ip()
end
end