Hi hos it goin, I am tempting to make a search command for a help script in one of my channels. The search is keyword based, and searches a text file for results. However the text file recently got a bit bigger for offering support. and I now need help to figure out how to make the search display more then one result seeing as some keywords people may use may return with more then one result. What I was using before.. the $read command...
on *:text:!trigger *:#: {
//echo -a $read(textfile.txt, w, $2)
if ($readn == 0) { /notice $nick No help topics match the keyword you are searching with. | goto done }
/notice $nick $read(textfile.txt, $readn)
:done { }
}
no longer works for the desired results.. If someone could help me out with this point me in the right direction that would be helpful thanks