ComputerTech Owner
Posts : 99 Points : 268 Reputation : 0 Join date : 2020-04-30
| Subject: Caesars timer +R -R 12/6/2020, 14:04 | |
| So this sets +R and then does -R At set times - 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 } } }
| |
|