on @1:text:& & & & & & *:[color:blue]#channel[/color]: {
var %word = $strip($7)
if ($read([color:red]filename[/color],s,%word) || $readn) {
[color:green]set %word %word[/color]
msg #channel You just saw %word. RUN!!!!!
}
} Other code given also works, but this should match exactly to what you requested and said yor file was (words one per line, to be matched)
I think this is better than using $read(,w,) becuase that uses wild card matching and should $7 be * you well get a match to the first word in the file.
on the green line : I dont know if u actually needed the %word stored globally or not so i left this line in, grabing it from the local copy of %word already created, if u dont need it then remove the green line.
set the blue #channel as needed
PS: replace filename with the filename of course.