I need more of a search that's automatically done
On text event
<User> Can you guess the phrase: thesjaifsun87safsetsat934jdnightjis
On *:text:*:#:{
if (User isin $nick) && ($5 == phrase:) { %c.t1 = $6- }
}
now the string is stored as a global varilable now what needs to automatically be performed is a search on my txt file called strget.txt to compare if it can find anything in my file that matches 100% then say the data that it matched to the channel.
my text file structure is simple and basic
Example:
The apple falls far from the tree
The boy who cried wolf
The boy who knows too much
now this list is about 300KB yes ouch. Now I know looping through this would take it's toll on time but maybe I can pre-load the txt file somewhere and use it like in a window, i just can't think properly what would be the suitable way and how to use regex to compare 100% match and only then will it say in channel what it found else nothing is displayed.