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  

 

 Timer Script

Go down 
2 posters
AuthorMessage
ComputerTech
Owner
Owner
ComputerTech


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

Timer Script Empty
PostSubject: Timer Script   Timer Script Empty20/5/2020, 17:34

Hello this is a simple time script that currently sets and unsets channel mode "m"


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
         }
      }
   }

   Set +moderate on the channels you want this timed +m/-m.

Back to top Go down
http://www.computer-tech1.webnode.co.uk
BdS
Moderator
Moderator
BdS


Posts : 33
Points : 33
Reputation : 0
Join date : 2020-05-08
Location : France

Timer Script Empty
PostSubject: Re: Timer Script   Timer Script Empty21/5/2020, 20:06

.chanset #channel +moderate
To active in partyLine this script Wink
Back to top Go down
 
Timer Script
Back to top 
Page 1 of 1
 Similar topics
-
» Simple Timer Topic Txt file script
» Caesars timer +R -R
» say script
» Fully Tested Clone Script
» Match script

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