Simple Bot Commands

By G13AoUsTiS on Nov 13, 2007

Just A few simple bot commands:)

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

Sign in to comment.
xplo   -  Sep 18, 2008

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?

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 }
}
 Respond  
CharltonJ   -  Nov 16, 2007

no problem bro :)

 Respond  
G13AoUsTiS   -  Nov 14, 2007

thnxs man!

 Respond  
CharltonJ   -  Nov 14, 2007

it\'s good, but fix the brackets at the last of else { ... :)

 Respond  
G13AoUsTiS   -  Nov 14, 2007

thnx:)

 Respond  
guest598594   -  Nov 13, 2007

sorry for doubule post

    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

 Respond  
guest598594   -  Nov 13, 2007

umm...can u try lining it up right?

 Respond  
guest598594   -  Nov 13, 2007

umm...can u try lining it up right?

 Respond  
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.