Comments
Join Hawkee
|
Login
Search
in
Code Snippets
Images
Products
Reviews
Forum
Home
Platforms
.NET
C++
Cold Fusion
CSS
Hi5
Java
Javascript
JSP
mIRC
MySpace
mySQL
OpenSocial
Perl
PHP
Python
Ruby / Rails
TCL
Images
Recently Liked
Most Liked
Most Comments
Snippets
.NET (6)
C++ (2)
Cold Fusion (1)
CSS (2)
Hi5 (1)
Java (1)
Javascript (10)
JSP (1)
mIRC (4,112)
MySpace (2)
mySQL (1)
OpenSocial (2)
Perl (8)
PHP (137)
Python (3)
Ruby / Rails (6)
TCL (20)
Products
Computers (11,665)
Electronics (7,706)
Software (1,000)
Video Games (3,640)
Reviews
Computers (5,852)
Electronics (15,711)
Software (2,169)
Video Games (7,196)
Posts
Latest Likes
Latest Comments
All Activities
Comments
Images
Scripts
Code Snippets
Products
Reviews
Profiles
Forum
username
password
auto login
Home
>
Code Snippets
>
tglisson's Snippets
>
mIRC
Uptime
mIRC Code
+ 0
likes
Like it
Please
Register
to submit score.
Average Score
1.0
Scores Submitted
1
Date Added
Feb 04, 2006
Last Updated
Feb 04, 2006
Tags
bot
uptime
Introduction
Load into bot, op's can type !uptime and bot will read out uptime.
Grab the Code
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
(7)
RSS
Go to Bottom
Hyper
Comments:
11
mIRC Snippet:
Uptime
Posted on
Feb 4, 2006 4:30 am
Why would you not just use $uptime(system,1) ?
QuickStep
Comments:
123
mIRC Snippet:
Uptime
Posted on
Feb 4, 2006 3:38 pm
$uptime(system,1) returns time without seconds, but in this case the seconds doesn\'t really matter so $uptime(system,1) should be sufficient.
tglisson
Comments:
1
mIRC Snippet:
Uptime
Posted on
Feb 4, 2006 6:33 pm
Feel free to change it to your likings.
Chrizzy
Comments:
1
mIRC Snippet:
Uptime
Posted on
Feb 5, 2006 8:16 am
nice :)
`Kazuma
Comments:
255
mIRC Snippet:
Uptime
Posted on
Feb 5, 2006 10:02 am
ON *:TEXT:!Uptime:#: {
msg blah Uptime: $uptime(system,1)
}
Yoinx
Comments:
424
mIRC Snippet:
Uptime
Posted on
Feb 5, 2006 10:20 am
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
bearruler
Comments:
24
mIRC Snippet:
Uptime
Posted on
Feb 6, 2006 10:40 am
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
Enter comment here..
Please
Register
or
Login
to start posting comments.
tglisson
Last seen:
Feb 04, 2006
Profile
Snippets
(1)
Comments Received
(7)
Comments Submitted
(1)
My Snippet Tags
bot
uptime
Contact
Add to Friends
Send Private Message
Sponsors