function onMessage(sender, name, message) -- content of the comment print(sender["name"].."\""..message.."\"") -- if the comment contains "lol" then true local lol = false if string.find(message,"lol") ~= nil then lol = true end if lol == true then print("A comment with lol in it was submitted") end end -- Receiving comments vci.message.On('comment', onMessage)