| View previous topic :: View next topic |
| Author |
Message |
tagoy Voice
Joined: 05 Jul 2012 Posts: 8 Location: Philippines
|
Posted: Mon Aug 06, 2012 5:13 pm Post subject: help sysinfo tcl |
|
|
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 |
|
| Back to top |
|
 |
SpiKe^^ Owner

Joined: 12 May 2006 Posts: 792 Location: Tennessee, USA
|
Posted: Mon Aug 06, 2012 11:36 pm Post subject: lets try this |
|
|
Let's try this. Search for this line in the script....
| Code: | | putlog "sysinfo.tcl - Loaded." |
And add these lines just before that line...
| Code: | bind time - "00 * * * *" ::sysinfo::Timed
proc ::sysinfo::Timed {mn hr da mo yr} {
global botnick
foreach chan [channels] {
if {[botonchan $chan]} { PUB $botnick - - $chan "" }
}
} |
_________________ SpiKe^^
Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Last edited by SpiKe^^ on Mon Aug 06, 2012 11:44 pm; edited 1 time in total |
|
| Back to top |
|
 |
tagoy Voice
Joined: 05 Jul 2012 Posts: 8 Location: Philippines
|
Posted: Mon Aug 06, 2012 11:40 pm Post subject: |
|
|
thank you for the help and quick reply, ill try it now. thank you spike^^. _________________ wew |
|
| Back to top |
|
 |
|