phpircbot2/commands/stats.prefix.php
Jan Philipp Timme 6b39d44754 Initial import.
2010-11-21 22:13:54 +00:00

10 lines
395 B
PHP

<?php
#BOT_INCLUDE "stats" "prefix" "0"
$total = $this -> eval_sys("find * | grep -i php | xargs cat | wc -l");
$stats = "";
$stats .= "Memory: ".number_format(memory_get_usage(true) / 1024)."KB ";
$stats .= "(Peak: ".number_format(memory_get_peak_usage(true) / 1024)."KB)";
$stats .= " - Code: ".number_format($total[0])." lines";
$this -> call("privmsg", $recv["origin"], $stats);
?>