Try add this alias in your bot remotes, maybe will help.

Code:
alias dc.dir return D:\mIRC\system\


The
Code:
 if ($lines($DC.Dir(mBOT\ChanStats.dat)) > 1)
searching on the mBOT path that the ChanStats.dat file is and getting the total lines and return them back and compare if the return lines is higher than 1.

- Thanks!


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-