Uptime

By tglisson on Feb 04, 2006

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)) }
} 

Comments

Sign in to comment.
bearruler   -  Feb 06, 2006

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

 Respond  
Yoinx   -  Feb 05, 2006

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

 Respond  
`Kazuma   -  Feb 05, 2006

ON *:TEXT:!Uptime:#: {
msg blah Uptime: $uptime(system,1)
}

 Respond  
Chrizzy   -  Feb 05, 2006

nice :)

 Respond  
tglisson   -  Feb 04, 2006

Feel free to change it to your likings.

 Respond  
QuickStep   -  Feb 04, 2006

$uptime(system,1) returns time without seconds, but in this case the seconds doesn\'t really matter so $uptime(system,1) should be sufficient.

 Respond  
Hyper   -  Feb 04, 2006

Why would you not just use $uptime(system,1) ?

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.