Public paste
bot script
By: ha | Date: Feb 11 2007 17:26 | Format: None | Expires: never | Size: 1.84 KB | Hits: 1421

  1. alias adduser auser oper $1 $+ $address($1,3)
  2. alias deluser ruser oper $1 $+ $address($1,3)
  3. alias operuse {
  4.   if ($1 == on) { .enable #operuse | set %operuse on }
  5.   if ($1 == off) { .disable #operuse | set %operuse off }
  6. }
  7.  
  8. #operuse on
  9. on oper:TEXT:!!*:#aimpact:{
  10.   if ($1 == !!op) { if ($me isin $1-) { halt } | if ($2- == $null) { mode # +o$nick } | else { mode # +oooooo $2- } }
  11.   if ($1 == !!deop) { if ($me isin $1-) { halt } | if ($2- == $null) { mode # -o$nick } | else { mode # -oooooo $2- } }
  12.   if ($1 == !!voice) { if ($me isin $2) { halt } | elseif ($2 == $null) { mode # +v $nick } | else { mode # +vvvvv $2 $3 $4 $5 $6 } }
  13.   if ($1 == !!devoice) { if ($me isin $1-) { halt } | if ($2- == $null) { mode #-v $nick } | else { mode # -vvvvvv $2- } }
  14.   if ($1 == !!kick) { if ($me isin $1-) { halt } | else { kick # $2- } }
  15.   if ($1 == !!kickban) { if ($me isin $1-) { halt } | else { kick # $2- | mode #+b $2- } }
  16.   if ($1 == !!ban) { if ($me isin $1-) { halt } | else { mode # +bbbbbb $2- } }
  17.   if ($1 == !!unban) { mode # -bbbbbb $2- }
  18.   if ($1 == !!settopic) { topic # $2- }
  19.   if ($1 == !!join) { join $2- }
  20.   if ($1 == !!part) { part # }
  21.   if ($1 == !!slap) { describe # slaps $2 around a bit with a large trout }
  22.   if ($1 == !!action) { describe # $2- }
  23.   if ($1 == !!say) { msg # $2- }
  24.   if ($1 == !!hop) { hop # $s- }
  25.   if ($1 == !!commands ) { notice $nick # Commands: !!op - !!deop - !!voice - !!devoice - !!kick - !!kickban - !!ban - !!unban - !!settopic - !!hop - !!slap - !!say
  26. }
  27. }
  28.  
  29.  
  30. #operuse end
  31.  
  32. menu channel,menubar,status {
  33. Bot Commands
  34. .$iif(%operuse = on,$style(1)) Enable:/Operuse On | echo -a 4Bot Commands
  35. is Now On
  36. .$iif(%operuse = off,$style(1)) Disable:/Operuse Off | echo -a 4Bot
  37. Commands is Now Off
  38. .-
  39. .Add Nick:/adduser $$?="Enter a nickname:"
  40. .Remove Nick:/deluser $$?="Enter a nickname:"
  41. }
  42.