I want a basic script that counts the amount of times I say a certain word. (Only 1 count per line)
Say the word is "yankees". I want it to count each time I say that word in a line.
I tried
On *:INPUT:#:{
if ($1 == yankees) {
inc %yankees
}
}
This works but will only count if "yankees" is the first or only word in the line. I want it to count lines like uhh "What about them yankees?" lol.
I tried putting stars around the word but that caused the script not to work. So basically I'm asking how to make the script work if the word is used anywhere in a line I said.
Thanks -Justin