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 sysinfo tcl

Support & discussion of released scripts, and announcements of new releases.
Post Reply
t
tagoy
Voice
Posts: 8
Joined: Thu Jul 05, 2012 10:01 pm
Location: Philippines

help sysinfo tcl

Post by tagoy »

http://pastebin.com/6GnURZWW

Help me guys please, i want to spit the uptime every 1hour via public message on the channel. thank you.
wew
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

lets try this

Post by SpiKe^^ »

Let's try this. Search for this line in the script....

Code: Select all

putlog "sysinfo.tcl - Loaded."
And add these lines just before that line...

Code: Select all

bind time - "00 * * * *" ::sysinfo::Timed

proc ::sysinfo::Timed {mn hr da mo yr} {
 global botnick
 foreach chan [channels] {
  if {[botonchan $chan]} {  PUB $botnick - - $chan ""  }
 }
}
Last edited by SpiKe^^ on Mon Aug 06, 2012 11:44 pm, edited 1 time in total.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
t
tagoy
Voice
Posts: 8
Joined: Thu Jul 05, 2012 10:01 pm
Location: Philippines

Post by tagoy »

thank you for the help and quick reply, ill try it now. thank you spike^^.
wew
Post Reply