ComputerTech Owner
Posts : 99 Points : 268 Reputation : 0 Join date : 2020-04-30
| Subject: Timer Script 20/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.
| |
|
BdS Moderator
Posts : 33 Points : 33 Reputation : 0 Join date : 2020-05-08 Location : France
| Subject: Re: Timer Script 21/5/2020, 20:06 | |
| .chanset #channel +moderate To active in partyLine this script | |
|