Here's a simple one that will work with just the one
file you put in.
on 1:Text:!count:#: {
msg $chan There are $lines([color:blue]file[/color]) lines of text in [color:blue]file[/color].
}
Or...
on 1:Text:!count *:#: {
if ($isfile($2-)) {
var %count = $numtok($2-,46)
if ($gettok($2-,%count,46) == mrc || $gettok($2-,%count,46) == ini || $gettok($2-,%count,46) == txt || $gettok($2-,%count,46) == doc) {
msg $chan $2- has a total of $lines($2-) line(s) with a size total of $bytes($file($2-),kb).suf $+ .
}
}
}
This allows users on the channel to type !count <file>.
It will only work if the file actually exists on your computer.
It will only work if the extension is either .mrc, .ini, .txt, .doc.
You can add more extensions if you like.
Example:
[15:24] <Andy> !count mIRC.ini
[15:24] <Test> mIRC.ini has a total of 204 line(s) with a size total of 4.6KB.
They can also specify directories.
Example:
[15:25] <Andy> !count Channels\Channels.txt
[15:25] <Test> Channels\Channels.txt has a total of 19 line(s) with a size total of 2.4KB.
If yopu don't want this, the the first one I specified will work for just one file which might be up your alley.
Hope this helps. :sile: