thank you kindly,

it works great but now when i try to put colors on it it stops working and starts saying * Invalid parameters: $findfile

this is how i had it

Code:
on *:TEXT:!logs:#:{  echo -l $findfile($mircdirlogs,*.*,0,msg $chan 1,1 1,14 Log name 1,1  $nopath($1-) - 1,1 1,14 Number of lines 1,1  $lines($1-) ) 
}