All pastes #738119 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-16 00:53 UTC
rendered paste body
on *:TEXT:!setpcw*:#: {
  if ($nick isop $chan) {
    set %pestcontrol [ $+ [ $chan ] ] $2-
  }
  else { notice $nick Sorry, you must be OP in this channel to use !setpcw.
  }
  if (%pestcontrol [ $+ [ $chan ] ] isnum 2-144) {
    msg $chan Pest Control world has been changed, please type !pcw to view it.
  }
}

on *:TEXT:!quitpc:#: {
  unset %pestcontrol [ $+ [ $chan ] ]
  msg $chan Pest Control world unset.
}

on *:TEXT:!pcw:#: {
  inc %pccounter [ $+ [ $chan ] ]
  inc %pctotal
  if ($nick isreg $chan) {
    notice $nick Sorry, you must be voiced to use the !pcw command.
  }
  else {
    notice $nick The current world is %pestcontrol [ $+ [ $chan ] ] $+ .
  }
}

on *:TEXT:!count:#: {
  if ($nick == Lunchbox) {
    notice $nick !pcw has been used %pccounter [ $+ [ $chan ] ] times in $chan and %pctotal total times.
  }
  else { notice $nick You are not the creator of this bot.
  }
}

on *:TEXT:!suggest*:#:{
notice $nick Thank you for your suggestion, it will be reviewed shortly.
window @suggestions
echo @suggestions $nick has suggested world $2- $+ .
}