Feedback on my Remote event watcher module

So, I’ve just created a module that watches your remote events. It essentially captures the arguments of every remote event that is called and also checks for any potential spamming of events.

Example:

local replicatedStorage = game:GetService("ReplicatedStorage")
local antiSpammerM = require(replicatedStorage:WaitForChild("AntiSpam"))

local event = replicatedStorage:WaitForChild("RemoteEvent")
local SayMessageRequest = replicatedStorage:WaitForChild("DefaultChatSystemChatEvents"):WaitForChild("SayMessageRequest")

local antiSpammer = antiSpammerM.new()
antiSpammer.events = {
	{instance = event, callback = function(plr)
		print(`Hello {plr}!`)
	end},
	{instance = SayMessageRequest, action = function(player,event,args)
		warn(`{player} is trying to spam messages! args: {table.unpack(args)}`)
	end}
}

antiSpammer.watch()

I would greatly appreciate some feedback and opinions regarding the use of this module and its functions.

1 Like