This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

How to calculate the uptime of the eggdrop bot.

Help for those learning Tcl or writing their own scripts.
Post Reply
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

How to calculate the uptime of the eggdrop bot.

Post by TCL_no_TK »

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 :) Thanks.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Code: Select all

puthelp "privmsg $chan :My uptime: [duration [expr [unixtime] - $::uptime]]."
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

lol Thanks, i feel like a dunce :oops: now i see how simple it is. :shock:
Post Reply