This commit is contained in:
lx
2026-07-06 14:01:11 -04:00
commit c4f97d729d
16468 changed files with 935321 additions and 0 deletions
@@ -0,0 +1,19 @@
local Modules = game:GetService("CoreGui").RobloxGui.Modules
local PercentReportingByCountryCode = tonumber(settings():GetFVariable("PercentReportingByCountryCode")) or 0
local WebApi = require(Modules.LuaChat.WebApi)
local function shouldReportForLocation()
return math.random(0, 99) < PercentReportingByCountryCode
end
return function(featureName, measureName, seconds)
if not shouldReportForLocation() then
return
end
local status = WebApi.ReportToDiagByCountryCode(featureName, measureName, seconds)
if status ~= WebApi.Status.OK then
warn("Failed to report ".. measureName .." to Diag")
end
end