| View previous topic :: View next topic |
| Author |
Message |
DeFirence Voice
Joined: 31 Oct 2006 Posts: 8
|
Posted: Wed Jan 10, 2007 5:25 am Post subject: Auto change topic at specific time on specific day |
|
|
Hi,
I really need a script that automatically changes the topic of the channel on certain days at certain times, i hav searched this foum and google.. i cant find such a thing anywhere.
Thanks alot
DeFirence
GT-Radio Staff
http://www.gt-radio.co.za |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Wed Jan 10, 2007 8:07 am Post subject: |
|
|
bind time - "<minute> <hour> <day> <month> <year>" command
Note: the first month is 00 while the first day is 01.
| Code: | | bind time - "00 00 01 00 *" {puthelp "TOPIC #chan :Happy new year!";#} |
_________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
DeFirence Voice
Joined: 31 Oct 2006 Posts: 8
|
Posted: Wed Jan 10, 2007 9:46 am Post subject: |
|
|
Thanks for the reply,
is there a way to make is repeat the same schedule every week, for instance, on mondays it changes at this this, this this and this time, same thing for each day of the rest of the week and next week monday its the same again?
Thanks
DeFirence
GT-Radio Staff
http://www.gt-radio.co.za |
|
| Back to top |
|
 |
user

Joined: 18 Mar 2003 Posts: 1452 Location: Norway
|
Posted: Wed Jan 10, 2007 10:02 am Post subject: |
|
|
| Code: | # this bind will run "stuff" at midnight every day...
bind time - {00 00*} stuff
proc stuff args {
switch [clock format [clock sec] -format %A] {
"Sunday" {
# code for sunday
}
"Monday" {
# code for monday...etc
}
}
} |
_________________ Have you ever read "The Manual"? |
|
| Back to top |
|
 |
|