I will basically have a textx file with one word per line. And I just want it to read that text file looking for a matching word based on what gets printed in the channel.
I know the word will always be the 7th word of the line. Where certainword is I want to be able to tell it to look in a text for that word, so I dont have to paste all that code for every word I want it to recognize.
I didn't test this, but try this
on @*:text:*:[color:red]#channel[/color]:{
var %checkfile = $read([color:red]wordlist.txt[/color],w,$7)
if (%checkfile) { msg # $nick $+ , You just said $7 $+ ! RUN!!! }
}
replace the red parts witht eh actual names