Send /w macro broken

ok got the spellink working,now this doesnt /w

#showtooltip
/run local name, realm=UnitName("target")if not name then return end if not realm then realm=GetRealmName()end SendChatMessage("Casting ".,C_Spell.GetSpellLink(2006).." on you.", "WHISPER", nil, name.."-"..realm)
/use Resurrection

nvm had typos,got it working