Public paste
asdf
By: asdf | Date: Feb 13 2007 14:32 | Format: None | Expires: never | Size: 3.37 KB | Hits: 627

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