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).
bind time - 00* updateTopic
proc updateTopic args {
set f [open yourtopicfile.txt]
set topic [gets $f]
close $f
if {$topic!=""} {
puthelp "TOPIC #yourchan :$topic"
}
}
(Not tested. (Remember to change "yourtopicfile.txt" and "#yourchan" to suit your needs))