Public paste
botscript
By: Ha | Date: Feb 13 2007 14:40 | Format: None | Expires: never | Size: 3.97 KB | Hits: 727

  1. alias adduser guser 1000 $1 2
  2. alias deluser ruser 1000 $1 2
  3.  
  4. on @*:JOIN:#:{ if ($ulevel == 25) { mode $chan +v $nick } | if ($ulevel >= 50) { mode $chan +o $nick } }
  5.  
  6. on *:TEXT:*:#:{
  7.   if ($ulevel >= 100) {
  8.     if ($1 == $+(%trigger,av)) { mode $chan +v $2  | notice $nick Ok, added $2 with flags +av | notice $2 You have been added with flags +av }
  9.     if ($1 == $+(%trigger,-av)) { mode $chan -v $2  | notice $nick Ok, removed $2 with flags +av | notice $2 You have been removed with flags +av }
  10.     if ($1 == $+(%trigger,ao)) { mode $chan +o $2  | notice $nick Ok, added $2 with flags +ao | notice $2 You have been added with flags +ao }
  11.     if ($1 == $+(%trigger,-ao)) { mode $chan -o $2  | notice $nick Ok, removed $2 with flags -ao | notice $2 You have been removed with flags -ao }alias deluser ruser 1000 $1 2
  12.       if ($1 == $+(%trigger,op)) {
  13.         if ($2 == $me) { halt }
  14.         elseif ($2 == $null) { mode # +o $nick }
  15.         else { mode # +ooooo $2 $3 $4 $5 $6 }
  16.       }
  17.       if ($1 == $+(%trigger,deop)) {
  18.         if ($2 == $me) { halt }
  19.         elseif ($2 == $null) { mode # -o $nick }
  20.         else { mode # -ooooo $2 $3 $4 $5 $6 }
  21.       }
  22.       if ($1 == $+(%trigger,voice)) {
  23.         if ($2 == $me) { halt }
  24.         elseif ($2 == $null) { mode # +v $nick }
  25.         else { mode # +vvvvv $2 $3 $4 $5 $6 }
  26.       }
  27.       if ($1 == $+(%trigger,devoice)) {
  28.         if ($2 == $me) { halt }
  29.         elseif ($2- == $null) { mode # -v $nick }
  30.         else { mode # -vvvvv $2 $3 $4 $5 $6 }
  31.       }
  32.       if ($1 == $+(%trigger,kick)) {
  33.         if ($2 == $me) { halt }
  34.         else {
  35.           if ($3 == $null) { kick # $2 You have been KICKED from this channel }
  36.           else { kick # $2 $3- }
  37.         }
  38.       }
  39.       if ($1 == $+(%trigger,kickban)) {
  40.         if ($2 == $me) { halt }
  41.         else {
  42.           if ($3 == $null) { mode $chan -o+b $2 $address($2,2) | kick $chan $2 You have been BANNED from this channel }
  43.           else { mode $chan -o+b $2 $address($2,2) | kick $chan $2 $3- }
  44.         }
  45.       }
  46.       if ($1 == $+(%trigger,trigger)) {
  47.         if ($2 == $null) { notice $nick Usage: $+(%trigger,trigger) <new trigger> }
  48.         else { set %trigger $2 | notice $nick Ok, setted as trigger: %trigger }
  49.       }
  50.       if ($1 == $+(%trigger,ban)) {
  51.         if ($2 == $me) { halt }
  52.         else { ban $chan $2 2 | ban $chan $3 2 | ban $chan $4 2 }
  53.       }
  54.       if ($1 == $+(%trigger,unban)) {
  55.         if ($2 == all) || ($2 == all) { mode $chan +b-b * * }
  56.         else { ban -r $chan $2 | ban -r $chan $3 | ban -r $chan $4 }
  57.       }
  58.       if ($1 == $+(%trigger,settopic)) { topic # $2- }
  59.       if ($1 == $+(%trigger,join)) { join $2 }
  60.       if ($1 == $+(%trigger,part)) { part # }
  61.       if ($1 == $+(%trigger,slap)) { describe # slaps $2 around a bit with a large trout }
  62.       if ($1 == $+(%trigger,action)) { describe # $2- }
  63.       if ($1 == $+(%trigger,say)) { msg # $2- }
  64.       if ($1 == $+(%trigger,hop)) { hop # $2- }
  65.       if ($1 == $+(%trigger,adduser)) {
  66.         guser 1000 $2 2
  67.         notice $nick Ok, added $2 as a user with level 1000
  68.         notice $2 You have been added in my database to control me. Typ $+(%trigger,commands) to see the command list!
  69.       }
  70.       if ($1 == $+(%trigger,deluser)) {
  71.         ruser 1000 $2 2
  72.         notice $nick Ok, removed $2
  73.       }
  74.       if ($1 == $+(%trigger,commands )) { notice $nick Commands: $+(%trigger,op) - $+(%trigger,deop) - $+(%trigger,voice) - $+(%trigger,devoice) - $+(%trigger,kick) - $+(%trigger,kickban) - $+(%trigger,ban) - $+(%trigger,unban) - $+(%trigger,settopic) - $+(%trigger,hop) - $+(%trigger,slap) - $+(%trigger,say) - $+(%trigger,adduser) - $+(%trigger,deluser)
  75.       }
  76.     }
  77.   }
  78.  
  79.   menu channel,menubar,status {
  80.     Bot Commands
  81.     .Add Nick:/adduser $$?="Enter a nickname:"
  82.     .Remove Nick:/deluser $$?="Enter a nickname:"
  83.   }
  84.  
  85.   on *:SNOTICE:*did a /whois on you*: {
  86.     .notice $2 8,5 Is there something that you need?
  87.   }
  88.