Try add this alias in your bot remotes, maybe will help.
alias dc.dir return D:\mIRC\system\
The
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!