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 

routines for daily/weekly/monthly/yearly

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Madalin
Master


Joined: 24 Jun 2005
Posts: 303
Location: Constanta, Romania

PostPosted: Wed Mar 07, 2018 1:04 pm    Post subject: routines for daily/weekly/monthly/yearly Reply with quote

Can anyone tell me if these are the correct codes for bind time routines?
Code:

   if {($min eq "01") && [regexp {^(00|07|14|21|28)$} $day]} { putlog "UserAge Weekly RESET has been triggered"; set temp(userage-reset) "weekly" }
   if {$min eq "02" && $day eq "00"} { putlog "UserAge Monthly RESET has been triggered"; set temp(userage-reset) "monthly" }
   if {$min eq "00" && [regexp {^(00|01|02|03|04|05|06|07|08|09|10|11|12|13|14|15|16|17|18|19|20|21|22|23|00)$} $hour]} { putserv "PRIVMSG _MaDaLiN_ :UserAge Daily RESET has been triggered"; set temp(userage-reset) "daily" }

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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