egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to calculate the uptime of the eggdrop bot.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Thu Nov 22, 2007 8:38 am    Post subject: How to calculate the uptime of the eggdrop bot. Reply with quote

I've read a recent post about a user requesting an uptime script for there eggdrop to show its uptime in the away message. I've tryed looking at the script for pointers but i've not been able really work out the way its calculated. I've been trying to calculate the bots uptime and the bots server online time for a status command i've yet to finish. If its possible could it be explained as to how to calculate the bots uptime/server online time for a script? Please, would be a great help Smile Thanks.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Thu Nov 22, 2007 8:40 am    Post subject: Reply with quote

Code:
puthelp "privmsg $chan :My uptime: [duration [expr [unixtime] - $::uptime]]."

_________________
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
Back to top
View user's profile Send private message Visit poster's website
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Thu Nov 22, 2007 1:00 pm    Post subject: Reply with quote

lol Thanks, i feel like a dunce Embarassed now i see how simple it is. Shocked
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber