All pastes #947024 Raw Edit

Anonymous

public text v1 · immutable
·published 2008-03-18 02:58 UTC
rendered paste body
on *:TEXT:$(%commandchar $+ *):#: myalias $right($1-,- $+ $len(%commandchar))
on *:INPUT:#: if ($left($1,1) == %commanchar) myalias $right($1-,- $+ $len(%commandchar))

myalias {
  if ($1 == COMMAND1) { 
    do some stuff because $iif($nick,they,I) said COMMAND1
  }
  elseif ($1 == COMMANMD2) {
    do some different stuff with parameters $2-
  }
  elseif ($1 == COMMAND3) {
    because i can add as many commands as i want here and just keep going and going and going
  }
}