TCLDROP
Would you like to react to this message? Create an account in a few clicks or log in to continue.
TCLDROP

Eggdrop And TCL Help, Support And Chat
 
HomeHome  PublicationsPublications  FAQFAQ  SearchSearch  MemberlistMemberlist  Latest imagesLatest images  UsergroupsUsergroups  RegisterRegister  Log in  CalendarCalendar  WebsiteWebsite  ChatRoomChatRoom  

 

 Caesars timer +R -R

Go down 
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


Posts : 99
Points : 268
Reputation : 0
Join date : 2020-04-30

Caesars timer +R -R Empty
PostSubject: Caesars timer +R -R   Caesars timer +R -R Empty12/6/2020, 14:04

So this sets +R and then does -R At set times Razz

Code:
namespace eval moderate {

   setudef flag moderate

   bind cron - {0 0 * * *} [namespace current]::lock
   bind cron - {0 7 * * *} [namespace current]::unlock
   
   proc lock {min hour day month weekday} {
      push "+m"
   }
   
   proc unlock {min hour day month weekday} {
      push "-m"
   }
   
   proc push {m} {
      foreach chan [channels] {
         if {![channel get $chan moderate]} continue
         if {![botonchan $chan] || ![botisop $chan]} continue
         pushmode $chan $m
      }
   }
}
Back to top Go down
http://www.computer-tech1.webnode.co.uk
 
Caesars timer +R -R
Back to top 
Page 1 of 1
 Similar topics
-
» Caesars Dont advertise script
» Timer Script
» Simple Timer Topic Txt file script

Permissions in this forum:You cannot reply to topics in this forum
TCLDROP :: Other :: Code-
Jump to: