$read command - 09/03/04 08:16 PM
Hi !
I am trying to get my script to scan a text file .. and if he find the words that he is looking for .. WRITE them to the room ..
I am not getting very far he will read the file but will only do a random msg not the specific one. This is how far I got
on ^*:text:*>>>>*:#: {
if ($2 isin $read(dedike.txt)) {
msg $chan ok {
else echo Unknown
}
}
If for instance the words Buddy Holly have been put in the dedike.txt file by someone .. and the script has to scan to see if Buddy Holly is there each time a record is played on the chat radio .. if a Buddy Holly record is played .. I want it to write in the channel ... the sentence about Buddy Holly ..that is in the text file ..
gosh hope that makes sense
I read all the $read and /write help files but I couldn't find anything
thankx in advance
caspi
I am trying to get my script to scan a text file .. and if he find the words that he is looking for .. WRITE them to the room ..
I am not getting very far he will read the file but will only do a random msg not the specific one. This is how far I got
on ^*:text:*>>>>*:#: {
if ($2 isin $read(dedike.txt)) {
msg $chan ok {
else echo Unknown
}
}
If for instance the words Buddy Holly have been put in the dedike.txt file by someone .. and the script has to scan to see if Buddy Holly is there each time a record is played on the chat radio .. if a Buddy Holly record is played .. I want it to write in the channel ... the sentence about Buddy Holly ..that is in the text file ..
gosh hope that makes sense
I read all the $read and /write help files but I couldn't find anything
thankx in advance
caspi