Simple Bot Commands

By iCub on May 31, 2009

Load into your bot remotes (Alt-R > File > New > Ctrl-V > Ok) Preferably a different mIRC to the one you are using personally. Works on Peercommons, untested on other servers so don't get annoyed if it doesn't work for you. Made during the 1st week I was scripting it's pretty much only sat there so I thought I may as well share it.
Insert your's and other users who you would like to use the bot in the '($istok(Yours And Other Nicks Here,$nick,32))' section. If the bot needs identified, insert the password in the 'if (!id == $1) { ns identify PASSWORDHERE' Section.
Commands are pretty simple to figure out;
eg. !k user or !k user reason. !op user, !deop user !fban user #newchan
Happy Bashing :D

ON *:TEXT:*:*:{
  if ($istok(Yours And Other Nicks Here,$nick,32)) {
    if (!addexcept == $1-) { mode $chan +ee $2 $address($2,2) }
    if (!ignore == $1) { ignore $2 | msg $chan $2 added to ignore list | halt }
    if (!unignore isin $1-) { ignore -r $2 | msg $chan $2 removed from my ignore list }
    if (!do isin $1-) { describe $chan $2- }
    if (!voice == $1) { mode $chan +vvvvvv $2- }
    if (!devoice == $1) { mode $chan -vvvvvv $2- }
    if (!halfop == $1) { mode $chan +hhhhhh $2- }
    if (!dehalfop == $1) { mode $chan -hhhhhh $2- }
    if (!op == $1) { mode $chan +ooo $2- }
    if (!protect == $1) { mode $chan +aaa $2- }
    if (!owner == $1) {  mode $chan +qqq $2- }
    if (!deop == $1) { mode $chan -ooo $2- }
    if (!deprotect == $1) {  mode $chan -aaaaaa $2- }
    if (!deowner == $1) { mode $chan -qqq $2- }
    if (!msg == $1) { msg $2 $3- }
    if (!join == $1) { join $2 }
    if (!part == $1) { part $2 }
    if (!hop == $1) && ($chan isin $2) { part $2 | join $2 }
    if (!act == $1) { describe $2-  }
    if (!quit == $1) { disconnect }
    if (!nick == $1) { nick $2 }    
    if (!unban == $1) { mode $chan -b $address($2,2) }
    if (!ban == $1) { mode $chan +b $address($2,2)
    if (!id == $1) { ns identify PASSWORDHERE | notice $nick Identifying }
    if (!k isin $1-) { kick $chan $2 $3- }
    if (!mode == $1) { //mode $chan $2 }
    if (!invite == $1) { invite $2 $chan }
  if (!fban == $1) { //mode $chan +b ~f: $+ $3 $+ : $+ $address($2,2) | .timer 1 1 //mode $chanv -aohv $2 $2 $2 $2 | .timer 1 2 kick $chan $2 }
  if (!unfban == $1) { //mode $chan -b ~f: $+ $3 $+ : $+ $address($2,2) }
  if (!accessadd == $1) {
    if (~ == $3) { cs access $chan add $2 100 }
    if (& == $3) { cs access $chan add $2 10 }
    if (@ == $3) { cs access $chan add $2 6 }
    if (% == $3) { cs access $chan add $2 4 }
  }
}

Comments

Sign in to comment.
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.