egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Auto change topic at specific time on specific day

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
DeFirence
Voice


Joined: 31 Oct 2006
Posts: 8

PostPosted: Wed Jan 10, 2007 5:25 am    Post subject: Auto change topic at specific time on specific day Reply with quote

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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Wed Jan 10, 2007 8:07 am    Post subject: Reply with quote

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
View user's profile Send private message
DeFirence
Voice


Joined: 31 Oct 2006
Posts: 8

PostPosted: Wed Jan 10, 2007 9:46 am    Post subject: Reply with quote

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
View user's profile Send private message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Wed Jan 10, 2007 10:02 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber