'<eof>' expected near 'end' HELP

This is the full error:
[ERROR] gamemodes/darkrp/gamemode/modules/chat/cl_interface.lua:46: ‘<eof>’ expected near ‘end’

  1. unknown - gamemodes/darkrp/gamemode/modules/chat/cl_interface.lua:0

DarkRP.addChatReceiver = DarkRP.stub{
	name = "addChatReceiver",
	description = "Add a chat command with specific receivers",
	parameters = {
		{
			name = "prefix",
			description = "The chat command itself (\"/pm\", \"/ooc\", \"/me\" are some examples)",
			type = "string",
			optional = false
		},
		{
			name = "text",
			description = "The text that shows up when it says \"Some people can hear you X\"",
			type = "string",
			optional = false
		},
		{
			name = "hearFunc",
			description = "A function(ply, splitText) that decides whether this player can or cannot hear you.",
			type = "function",
			optional = false
		},	
	},
	returns = {},
	metatable = DarkRP
}

DarkRP.removeChatReceiver = DarkRP.stub{
	name = "removeChatReceiver",
	description = "Remove a chat command receiver",
	parameters = {
		{
			name = "prefix",
			description = "The chat command itself (\"/pm\", \"/ooc\", \"/me\" are some examples)",
			type = "string",
			optional = false
		}
	},
	returns = {},
	metatable = DarkRP
}
   
for k,v in pairs(player.GetAll()) do
GAMEMODE:TalkToPerson(v, rank_col, rank_str.." "..ply:Name(), Color(255,255,255,255), text, ply)
end
end
return args, DoSay
end
AddChatCommand("//", OOC, true, 1.5)
AddChatCommand("/a", OOC, true, 1.5)
AddChatCommand("/ooc", OOC, true, 1.5)


Have you edited the file?

Yes but i deleted what i added

No you didn’t. Why didn’t you just redownload the file, when it wasn’t working after you had touched it?

That’s not even valid code, and wouldn’t work even if you fixed the error.

Anyway, the error stems from having too many ends.

Like Greetings said, this code is useless.