by Kraziee » Mon Sep 06, 2010 6:23 pm
I want to set a timer for this so it update every day at clock let say every 12h
- Code: Select all
menu channel,status,nicklist {
.Topic
..Random Topic: /Topic # $read(topic.txt)
..Enable Random Topic:.enable #Autotopic on on |
..Disable Random Topic:.disable #autotopic off |
..View Topics In File:run $findfile($mircdir,Topic.txt,1)
..Add A topic: set %newtopic $$?="What is your topic?" | write Topic.txt %newTopic |
}
#autoTopic off
on *:text:!Topic:#: {
if ($nick isop $chan) {
.topic $chan $read(Topic.txt)
.notice $nick Done.
}
}
on 1:text:!Addtopic *:#: {
if ($2) {
msg $chan Added Topic: $2-
write topic.txt $2-
}
else {
.notice $nick Please write the topic after !Addtopic | halt }
}
#autotopic End
#autoTopic off
#autoTopic End