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.

Auto change topic at specific time on specific day

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
DeFirence
Voice
Posts: 8
Joined: Tue Oct 31, 2006 2:58 am

Auto change topic at specific time on specific day

Post by DeFirence »

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
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

bind time - "<minute> <hour> <day> <month> <year>" command
Note: the first month is 00 while the first day is 01.

Code: Select all

bind time - "00 00 01 00 *" {puthelp "TOPIC #chan :Happy new year!";#}
Have you ever read "The Manual"?
D
DeFirence
Voice
Posts: 8
Joined: Tue Oct 31, 2006 2:58 am

Post by DeFirence »

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
User avatar
user
&nbsp;
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

Code: Select all

# 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"?
Post Reply