it is poosible on the above script, to read the words from a file?
i want to add many words, its more easy to me to have a .txt for an example with the keywords, on per line
Try to use this script code:
on *:TEXT:*:#channel:{
var %file = $mircdir\words.txt
var %i 1 | while (%i <= $lines(%file)) {
if ($read(%file,nt,%i) iswm $strip($1-)) {
if ($nick == UserNick) {
if (!$window(@TEST)) window -e @TEST $mircexe 21
aline -h @TEST $timestamp $+($nick,:) $1-
}
}
inc %i
}
}
The variable "
%file" contains the path to the file "
$mircdir\words.txt" - you can change this to any other path.
The file "
words.txt" contains on each line word-mask with wildcards. It must be filled in as follows: