Load into bot, op's can type !uptime and bot will read out uptime.
On *:TEXT:!uptime*:#: { if ($nick isop #) { /msg $chan Uptime: $replace($duration($calc($ticks / 1024)),week,wks,days,days,day,day,hours,hrs,hour,hr,mins,ms,min,m)) } }
When you do replace, you dont need the \"days\" or \"day\" because it replaces it with itself... You also dont need brackets
On @*:TEXT:!uptime:#: msg # Uptime: $uptime(system,1)
Bear
actually, $uptime(system,1) should include the seconds, $uptime(system,2) would not include the seconds.
//echo -a $uptime(system,1) = 17hrs 24mins 19secs //echo -a $uptime(system,2) = 17hrs 24mins
ON *:TEXT:!Uptime:#: { msg blah Uptime: $uptime(system,1) }
nice :)
Feel free to change it to your likings.
$uptime(system,1) returns time without seconds, but in this case the seconds doesn\'t really matter so $uptime(system,1) should be sufficient.
Why would you not just use $uptime(system,1) ?