All pastes #78773 Raw Edit

Someone

public text v1 · immutable
·published 2006-07-04 15:27 UTC
rendered paste body
on 100:text:*:*: {
  if $1 == .timer {
    if !$2 { .notice $nick Missing parameters. Syntax: .timer on/off | halt }
    if $2 == on { set %timerr on | .notice $nick Timer mode on! }
    if $2 == off { set %timerr off | .notice $nick Timer mode off! }
    else { .notice $nick Use either "on" or "off". }
  }
}
on 100:text:*:*: {
  if $1 == .timers {
    if !$2 || !$3 || !$4 { .notice $nick Missing parameters. Syntax: .timers <timername> <timestamp> <commands>. | halt }
    .timer $+ $2 1 $3 $4-
    .notice $nick Timer $2 added!
  }
}