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.

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

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

sorry, i'm not good in coding.