ComputerTech Owner
Posts : 99 Points : 268 Reputation : 0 Join date : 2020-04-30
| Subject: Simple Timer Topic Txt file script 21/5/2020, 23:51 | |
| Hello all this is a simple Timer Topic Txt file Script Enjoy - Code:
-
bind time - "00 *" foo if {![catch {set f [open topic.txt]}]} { set t [split [read $f] \n:]; close $f } {set t {}} proc foo {m h args} { foreach {c n s} $::t { if {[clock scan $h]==[clock scan $n]} { if {[botisop $c]} {putserv "topic $c :$s"} } } } bind time - "00 *" foo if {![catch {set f [open topic.txt]}]} { set t [split [read $f] \n:]; close $f } {set t {}} proc foo {m h args} { foreach {c n s} $::t { if {[clock scan $h]==[clock scan $n]} { if {[botisop $c]} {putserv "topic $c :$s"} } } } | |
|