Top

Simple Bot Commands


mIRC Code
+ 0 likes
Please Register to submit score.
Bookmark and Share
Average Score  2.0 (of 1 scores)
Date Added  Nov 13, 2007
Last Updated  Nov 14, 2007
Tags  bot  commands 

Introduction

Just A few simple bot commands:)

Grab the Code

on *:load: /guser owner $$?="Owners NickName:" 3 | //echo -a 7Thank Your for Using 12G13AoUsTiS7 Bot Commands 
 
on *:text:!voice*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !voice <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan +v $2  | /notice $2 $nick Voiced You In $chan | | /set %lastcmd $nick Voiced $2 }
  if ($level($address($nick,3)) == op) { /mode $chan +v $2 | /set %lastcmd $nick Voiced $2 }
  if ($level($address($nick,3)) == voice) { /mode $chan +v $2 | /set %lastcmd $nick Voiced $2 }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
  on *:text:!devoice*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !devoice <nick> }
    if ($level($address($nick,3)) == owner) { /mode $chan -v $2 | /notice $2 $nick Devoiced You In $chan |  | /set %lastcmd $nick Devoiced $2  }
    if ($level($address($nick,3)) == op) { /mode $chan -v $2 | /set %lastcmd $nick Devoiced $2  }
    if ($level($address($nick,3)) == voice) { /mode $chan -v $2 | /set %lastcmd $nick Devoiced $2  }
    else { /notice $nick You Dont Have Enough Access To Perform This Command
    }
    on *:text:!op*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !op <nick> }
      if ($level($address($nick,3)) == owner) { /mode $chan +o $2 | /notice $2 $nick Opped You In $chan | /set %lastcmd $nick Opped $2   }
      if ($level($address($nick,3)) == op) { /mode $chan +o $2 | /set %lastcmd $nick Opped $2   }
      else { /notice $nick You Dont Have Enough Access To Perform This Command
      }
      on *:text:!deop*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !deop <nick> }
        if ($level($address($nick,3)) == owner) { /mode $chan -o $2 | /notice $2 $nick Deopped You In $chan |   | /set %lastcmd $nick DeOpped $2  }
        if ($level($address($nick,3)) == op) { /mode $chan -o $2  | /set %lastcmd $nick DeOpped $2  }
        else { /notice $nick You Dont Have Enough Access To Perform This Command
        }
        on *:text:!ban*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !ban <nick> <Reason> }
          if ($level($address($nick,3)) == owner) { /mode $chan +b $2 | /kick $chan $2 ( $+ $nick $+ ) $3- | /set %lastcmd $nick Ban $2 with the reason: $3-  }
          if ($level($address($nick,3)) == op) { /mode $chan +b $2 | /kick $chan $2 $3- | /set %lastcmd $nick Ban $2 with the reason: $3-  }
          else { /notice $nick You Dont Have Enough Access To Perform This Command
          }
          on *:text:!unban*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !unban <nick> }
            if ($level($address($nick,3)) == owner) { /mode $chan -b $2  | /set %lastcmd $nick UnBanned $2  }
            if ($level($address($nick,3)) == op) { /mode $chan -b $2  | /set %lastcmd $nick UnBanned $2  }
            else { /notice $nick You Dont Have Enough Access To Perform This Command
            }
                    on *:text:!kick*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !kick <nick> <Reason> }
          if ($level($address($nick,3)) == owner) {  /kick $chan $2 ( $+ $nick $+ ) $3- | /set %lastcmd $nick kicked $2 with the reason: $3-  }
          if ($level($address($nick,3)) == op) { /mode $chan +b $2 | /kick $chan $2 $3- | /set %lastcmd $nick kicked $2 with the reason: $3-  }
          else { /notice $nick You Dont Have Enough Access To Perform This Command
          }
 
            on *:text:!lastcommand*:#:  /msg $chan 7 $+ %lastcmd
 
            on *:text:!addop*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !addop <nick> }
              if ($level($address($nick,3)) == owner) { /guser op $2 3  | /set %lastcmd $nick added $2 as an OP  }
              else { /notice $nick You Dont Have Enough Access To Perform This Command
              }
              on *:text:!delop*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !delop <nick> }
                if ($level($address($nick,3)) == owner) { /ruser op $2 3  | /set %lastcmd $nick removed $2 from OP  }
                else { /notice $nick You Dont Have Enough Access To Perform This Command
                }
 
                on *:text:!addvoice*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !addvoice <nick> }
                  if ($level($address($nick,3)) == owner) { /guser voice $2 3  | /set %lastcmd $nick added $2 as a Voice  }
                  else { /notice $nick You Dont Have Enough Access To Perform This Command
                  }
                  on *:text:!delvoice*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !delvoice <nick> }
                    if ($level($address($nick,3)) == owner) { /ruser voice $2 3  | /set %lastcmd $nick removed $2 from Voice  }
                    else { /notice $nick You Dont Have Enough Access To Perform This Command
                    }
                    on *:text:!say*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !say <message> }
                      if ($level($address($nick,3)) == owner) { /msg $chan $2-   }
                      else { /notice $nick You Dont Have Enough Access To Perform This Command
                      }
                      on *:text:!act*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !act <message> }
                        if ($level($address($nick,3)) == owner) { /describe $chan $2-   }
                        else { /notice $nick You Dont Have Enough Access To Perform This Command
                        }
                       on *:text:!topic*:#: {
if ($2 == $null) { /notice $nick Incorrect Syntax: !topic <Topic> }
                        if ($level($address($nick,3)) == owner) { /topic $chan $2-   }
                        else { /notice $nick You Dont Have Enough Access To Perform This Command
                        }
 
on *:text:!lines:#: {
    var %i = $script(0), %lines = 0
    while (%i) {
      inc %lines $lines($script(%i))
      dec %i
    }
    msg # 7There Are:12 $script(0) 7scripts with:12 $genuinenumber(%lines) 7lines making me up!  | halt
  }
}
 
on *:text:!level*:#: {
if ($level($address($2,3)) == owner) { /msg $chan 12 $+ $2 7is the bot's owner! }
if ($level($address($2,3)) == op) { /msg $chan 12 $+ $2 7is an:12 OP }
if ($level($address($2,3)) == voice) { /msg $chan 12 $+ $2 7is a:12 Voice }
}

Comments

  (8)  RSS
mountaindew
Comments: 1,826
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 13, 2007 2:08 pm
umm...can u try lining it up right?
mountaindew
Comments: 1,826
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 13, 2007 2:08 pm
umm...can u try lining it up right?
mountaindew
Comments: 1,826
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 13, 2007 5:08 pm
sorry for doubule post
Code:

    msg # 7There Are:12 $script(0) 7scripts with:12 $genuinenumber(%lines) 7lines making me up!  | halt

just use .msg to not show it in status, no need to halt
G13AoUsTiS
Comments: 37
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 14, 2007 6:44 am
thnx:)
CharltonJ
Comments: 44
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 14, 2007 9:28 am
it's good, but fix the brackets at the last of else { ... :)
G13AoUsTiS
Comments: 37
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 14, 2007 12:25 pm
thnxs man!
CharltonJ
Comments: 44
 
mIRC Snippet:  Simple Bot Commands
Posted on Nov 16, 2007 12:50 pm
no problem bro :)
Xpl0reR
Comments: 223
 
mIRC Snippet:  Simple Bot Commands
Posted on Sep 18, 2008 5:15 pm
you had a big brackets problem, i fixed it.

here is your fixed code (Bracket fix only)

Btw, you need a on join event, for the op voice and owner :p

how would you voice the addvoice without it?

Code:

on *:load: /guser owner $$?="Owners NickName:" 3 | //echo -a 7Thank Your for Using 12G13AoUsTiS7 Bot Commands

on *:text:!voice*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !voice <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan +v $2  | /notice $2 $nick Voiced You In $chan | | /set %lastcmd $nick Voiced $2 }
  if ($level($address($nick,3)) == op) { /mode $chan +v $2 | /set %lastcmd $nick Voiced $2 }
  if ($level($address($nick,3)) == voice) { /mode $chan +v $2 | /set %lastcmd $nick Voiced $2 }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!devoice*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !devoice <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan -v $2 | /notice $2 $nick Devoiced You In $chan |  | /set %lastcmd $nick Devoiced $2  }
  if ($level($address($nick,3)) == op) { /mode $chan -v $2 | /set %lastcmd $nick Devoiced $2  }
  if ($level($address($nick,3)) == voice) { /mode $chan -v $2 | /set %lastcmd $nick Devoiced $2  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!op*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !op <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan +o $2 | /notice $2 $nick Opped You In $chan | /set %lastcmd $nick Opped $2   }
  if ($level($address($nick,3)) == op) { /mode $chan +o $2 | /set %lastcmd $nick Opped $2   }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }   
}
on *:text:!deop*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !deop <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan -o $2 | /notice $2 $nick Deopped You In $chan |   | /set %lastcmd $nick DeOpped $2  }
  if ($level($address($nick,3)) == op) { /mode $chan -o $2  | /set %lastcmd $nick DeOpped $2  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!ban*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !ban <nick> <Reason> }
  if ($level($address($nick,3)) == owner) { /mode $chan +b $2 | /kick $chan $2 ( $+ $nick $+ ) $3- | /set %lastcmd $nick Ban $2 with the reason: $3-  }
  if ($level($address($nick,3)) == op) { /mode $chan +b $2 | /kick $chan $2 $3- | /set %lastcmd $nick Ban $2 with the reason: $3-  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!unban*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !unban <nick> }
  if ($level($address($nick,3)) == owner) { /mode $chan -b $2  | /set %lastcmd $nick UnBanned $2  }
  if ($level($address($nick,3)) == op) { /mode $chan -b $2  | /set %lastcmd $nick UnBanned $2  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!kick*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !kick <nick> <Reason> }
  if ($level($address($nick,3)) == owner) {  /kick $chan $2 ( $+ $nick $+ ) $3- | /set %lastcmd $nick kicked $2 with the reason: $3-  }
  if ($level($address($nick,3)) == op) { /mode $chan +b $2 | /kick $chan $2 $3- | /set %lastcmd $nick kicked $2 with the reason: $3-  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!lastcommand*:#:  /msg $chan 7 $+ %lastcmd

on *:text:!addop*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !addop <nick> }
  if ($level($address($nick,3)) == owner) { /guser op $2 3  | /set %lastcmd $nick added $2 as an OP  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!delop*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !delop <nick> }
  if ($level($address($nick,3)) == owner) { /ruser op $2 3  | /set %lastcmd $nick removed $2 from OP  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!addvoice*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !addvoice <nick> }
  if ($level($address($nick,3)) == owner) { /guser voice $2 3  | /set %lastcmd $nick added $2 as a Voice  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!delvoice*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !delvoice <nick> }
  if ($level($address($nick,3)) == owner) { /ruser voice $2 3  | /set %lastcmd $nick removed $2 from Voice  }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!say*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !say <message> }
  if ($level($address($nick,3)) == owner) { /msg $chan $2-   }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!act*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !act <message> }
  if ($level($address($nick,3)) == owner) { /describe $chan $2-   }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!topic*:#: {
  if ($2 == $null) { /notice $nick Incorrect Syntax: !topic <Topic> }
  if ($level($address($nick,3)) == owner) { /topic $chan $2-   }
  else { /notice $nick You Dont Have Enough Access To Perform This Command
  }
}
on *:text:!lines:#: {
  var %i = $script(0), %lines = 0
  while (%i) {
    inc %lines $lines($script(%i))
    dec %i
  }
  msg # 7There Are:12 $script(0) 7scripts with:12 $genuinenumber(%lines) 7lines making me up!  | halt
}


on *:text:!level*:#: {
  if ($level($address($2,3)) == owner) { /msg $chan 12 $+ $2 7is the bot's owner! }
  if ($level($address($2,3)) == op) { /msg $chan 12 $+ $2 7is an:12 OP }
  if ($level($address($2,3)) == voice) { /msg $chan 12 $+ $2 7is a:12 Voice }
}

Commenting Options

Register or Login to Hawkee.com or use your Facebook or Twitter account by clicking the corresponding button below.

  
Bottom