Skip to content

ProjectModeration/core

Repository files navigation

core

this is the main service powering the moderation system.

the application have two-type classification pipeline:

1. machine-learning classification (sybauML)

the first stage uses sybauML, a custom model fine-tuned from facebookai/roberta-base and trained on the FYM dataset from hugging face. this model performs fast, reliable text classification specifically optimized for roblox-style bios, detecting unsafe, inappropriate, or disallowed content.

2. gemini ai classification

the text is sent to gemini ai for secondary classification. gemini adds contextual reasoning, edge-case detection, and higher-level semantic checks to reduce false positives and handle cases that require more nuanced understanding.

the service is hosted on render, and you can deploy it directly using the button above. if you deploy it yourself, make sure to replace all environment variables with your own credentials.

public endpoint:

https://core-2x1o.onrender.com

luau code example

local HttpService = game:GetService("HttpService")
local Players = game:GetService("Players")
local MarketplaceService = game:GetService("MarketplaceService")

local ok, info = pcall(function()
	return MarketplaceService:GetProductInfo(game.PlaceId)
end)

if ok then
	print(info.Name .. " is using Verb's AI Moderation by Chip!")
end

local function checkPlayer(player)
	local url = "https://core-2x1o.onrender.com/submit?userid=" .. player.UserId .. "&cache=true"

	local success, res = pcall(function()
		return HttpService:GetAsync(url)
	end)

	if not success then
		return warn("http failed:", res)
	end

	local data = HttpService:JSONDecode(res)
	local score = data.avatar.rating + data.bio.bioAI.rating + data.groupRating

	if score > 3.5 then
			player:Kick(string.format("You have been kicked for being detected with AI moderation, you got a moderation point of %d. ggs", overall_rating))
	else
		print("good boy")
	end
end

Players.PlayerAdded:Connect(checkPlayer)

for _, plr in ipairs(Players:GetPlayers()) do
	checkPlayer(plr)
end

``

About

good use of clanker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published