okokPhone integration

This commit is contained in:
Luxu committed 2025-05-05 18:17:28 +01:00
1 parent 3e6bc0dd81
commit 70199ea310
2 files changed
+71

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
local resourceName = "okokPhone"
local configValue = BridgeSharedConfig.Phone
if (configValue == "auto" and GetResourceState(resourceName) ~= "started") or (configValue ~= "auto" and configValue ~= resourceName) then return end
Phone = Phone or {}
---comment
---@param email string
---@param title string
---@param message string
---@return boolean
---@diagnostic disable-next-line: duplicate-set-field
Phone.SendEmail = function(email, title, message)
local success = lib.callback.await('community_bridge:Callback:okokPhone:sendEmail', false, email, title, message) --[[ @as boolean ]]
return success
end