All pastes #809269 Raw Edit

join summon whisper

public text v1 · immutable
·published 2007-12-08 18:31 UTC
rendered paste body
alias -l snd sockwrite %sock $1- $+ $lf

on *:SIGNAL:rb.summon.*:{
  var %sn = $gettok($signal,3,46)
  var %sock = fb. $+ %sn

  ; different player names are seperated by | and character names must be shortnames
  if ($regex($1,(yournamehere|someoneelsesnamehere))) snd join $1
}

on *:SIGNAL:rb.join.*:{
  var %sn = $gettok($signal,3,46)
  var %sock = fb. $+ %sn

  snd summon $1
}

on *:SIGNAL:rb.whisper.*:{
  var %sn = $gettok($signal,3,46)
  var %sock = fb. $+ %sn
  var %shortname = $1
  var %name = $2
  tokenize 32 $3-
  if ($1 == BotStat) {
    sockwrite %sock wh %name Looking for a furbot? I'm not one of those! #SE $+ $lf
  }
  if ($1 == hallobot) {
    sockwrite %sock wh %name hai #SE $+ $lf
  }
}