WorldDMT commented on a Page, A1 BOT ~UrZBot 2.0~  -  Jun 20, 2010

why not use hash tables?
i think it's faster and shorter

alias -l cmd {
  return bininfo|low|high|say|hop|id|invite|gkick|bininfo|!@#$|$&
  $+ ban|GetYourAssHere|update|v|dv|owner|k|lilop|out|j|add|owner|out|add
}
alias bot_data {
  hadd -m bot_cmd .hop hop #
  hadd -m bot_cmd .id ns identify ******
  hadd -m bot_cmd .invite invite $$!2 #
  hadd -m bot_cmd .gkick gkick $$!2
  hadd -m bot_cmd .bininfo msg # Hey I'm $!nick $+ , and I'm UrZBot. Im Version 2.0; I was created by UrZTruly. It's currently getting worked on for 3.0.
  hadd -m bot_cmd .!@#$ quit
  hadd -m bot_cmd .ban cs ban $$!2 | cs kick # $$!2-
  hadd -m bot_cmd .k cs kick # $$!2-
  hadd -m bot_cmd .update ns update
  hadd -m bot_cmd .say msg # $$!2-
  hadd -m bot_cmd .low cs dehalfop # $!me
  hadd -m bot_cmd .high cs halfop # $!me
  hadd -m bot_cmd .v $!iif($2 ison #,mode # +v $!2)
  hadd -m bot_cmd .dv $!iif($2 ison #,mode # -v $!2)
  hadd -m bot_cmd .owner $!iif($2 ison #,mode # +q $!2)
  hadd -m bot_cmd .lilop $!iif($2 ison #,mode # +h $!2)
  hadd -m bot_cmd .out part $$!2-
  hadd -m bot_cmd .j join $$!2-
  hadd -m bot_cmd .add cs access # add $$!2-
  hadd -m bot_cmd .n1 nick nick1
  hadd -m bot_cmd .n2 nick nick2
  hadd -m bot_cmd .n3 nick nick3
  hadd -m bot_cmd .n4 nick nick4
  hadd -m bot_cmd .n5 nick nick5
}
on *:start:bot_data
on $200:text:$(/^.( $+ $cmd $+ |N(1|2|3|4|5))/iS):#$(,$hget(bot_cmd,$1))
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.