All pastes #928433 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-03-05 01:30 UTC
rendered paste body
;Seems intimidating, but its not.

on $*:text:/^[`!](Script|Joel)/Si:#: {
  ;Heres your opening trigger. I made it so instead of a single trigger;
  ;It will trigger on "`script, !script, `Joel and !Joel.

  var %Y-Code Y
  var %Z-Code Z
  ;Heres your variable, temporary data storage.

  if (%Y-Code == $null) || (%Z-Code == $null) {
    msg $chan Specify a bot, $nick $+ .
  }
  ;it checks here to see if $2 == $null or not.
  if ($2 == Y-Code) {
    msg $chan Straighten up there, $2 $+ .
  }
  ;checking if $2 == Y-code
  if ($2 == Z-Code) {
    msg $chan Straighten up there, $2 $+ .
  }
  ;checking if $2 == Z-Code
  if ($2 !ison $chan) {
    msg $chan They aren't on the channel, numbnuts! | halt
  }
  ;checks if $2 is on the channel or not.
}
;finishing bracket.
;All comments are under the lines of code.