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.

Help with ping reply

Help for those learning Tcl or writing their own scripts.
Post Reply
R
Reynaldo
Halfop
Posts: 54
Joined: Wed May 11, 2005 2:51 am

Help with ping reply

Post by Reynaldo »

Code: Select all

set pingtime [expr [unixtime] - $arg]
puthlp "PRIVMSG $chan :$nick PING Reply: $pingtime sec"
example the pingtime = 90
The bot will say:$nick PING Reply 90 sec
How to make the bot say:$nick PING reply: 1 minute 30 sec ??
90 sec = 1 minute & 30 sec :lol:
then if 60 sec return to 1 minutes.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

use [duration <time var>]
Post Reply