I know there have been bits and piece of reading a text file in certain scripts, but I wanted something very simple. 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. Probably confusing so...
on @1:text:*:#: {
if (# == #channel) && (CERTAINWORD isin $7-) {
set %word $strip($7)
//msg #channel You just saw %word. RUN!!!!!
}
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.