Hi folks,
i wonder if somebody could help me realizing the follwing:
I want the bot to read the 1st line of test.txt every 24 hours and then set this 1st line as topic.
Could anyone please help me?
Thanks, traxx
Code: Select all
set topicfile "scripts/topics.txt"
bind time - "00 00 *" set:topic
proc set:topic args {
set topic [read -nonewline [set f [open $::topicfile]]][close $f]
puthelp "topic #yourchannel :$topic"
}