This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
traxx
- Voice
- Posts: 11
- Joined: Tue Jan 03, 2006 7:23 am
Post
by traxx »
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
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
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"
}
-
traxx
- Voice
- Posts: 11
- Joined: Tue Jan 03, 2006 7:23 am
Post
by traxx »
thanks a lot!