how do i make a kick script when it trigger on certain words.

it'll give warning on the first time and then the second time it'll kick the person who trigger it

i wanted to setup a few words together so i don't have to repeat again the whole scripting.
i want to to trigger by a few types of words.

example
<123> kkkk
<bot> Warning, You are not allow to say "kkkk" in this channel.
<123> zzzz
*123 was kicked by bot

Code:
on *:text::#channel:{
If (zzzz | kkkk)
 kick $nick
}


sorry, i'm not good in coding.