mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-25 14:25:02 +00:00
12 lines
255 B
Lua
12 lines
255 B
Lua
local Moderation = {}
|
|
|
|
function Moderation.flag(content)
|
|
local lowered = string.lower(content or "")
|
|
if string.find(lowered, "spam") then
|
|
return { flagged = true, reason = "spam_keyword" }
|
|
end
|
|
return { flagged = false }
|
|
end
|
|
|
|
return Moderation
|