I need to get one string from file every 60-120 minutes and if it is not empty, then set it as topic on #channel. My file will always contain only one dynamic string with fixed lenght (or +- 2 chars).
Can anyone help me with such script?
Code: Select all
bind time - 00* updateTopic
proc updateTopic args {
set f [open yourtopicfile.txt]
set topic [gets $f]
close $f
if {$topic!=""} {
puthelp "TOPIC #yourchan :$topic"
}
}