All-Around-Bot v 0.5

By Smokey on Jun 03, 2006

This is a semi simple bot with some basic functions. Please leave comments on future commands/functions. Enjoy.

on *:text:*:#: {
  if ($chan == %home) {
    if ($1 == !about) {
msg $chan All-Around-Bot v 0.5 By Smokey
    }
        if ($1 == !commands) {
msg $chan OP Commands: !opme - !join #CHAN - !part #chan - !restart - !globalmsg MSG - !adkick NICK
msg $chan User Commands: !about - !commands
    }
    if (# isin $1-) {
      if ($nick !isvoice $chan) {
        if ($nick !isop $chan) {
          ban -u10 $chan $nick
          kick $chan $nick No Advertising!(10 second Ban.)
        }
      }
    }
  }
  if ($1 == !opme) && ($nick isop %home) {
    mode $chan +o $nick
  } 
  if ($1 == !join) && ($nick isop %home) {
    join $2
  }
  if ($1 == !part) && ($nick isop %home) {
    part $2 
  }
  if ($1 == !restart) && ($nick isop %home) {
    quit Restart Request By $nick
    timerboot 1 1 connect %home_server
  }
  if ($1 == !globalmsg) && ($nick isop %home) {
    amsg [ Global Message ] $2-
  }
  if ($1 == !adkick) {
    if ($nick !isop $chan) {
      ban -u120 $chan $2
      kick $chan $2 No Advertising!(2 minute Ban.)
    }
  }
}
on *:text:*:?: {
  msg $nick Hello, $nick Please Speak To %owner About Anything. I Am A bot.
}
on *:load*: {
set %home $?="What Is The Bots Home Channel?"
echo All-Around-Bot v 0.5 By Smokey Loaded
amsg All-Around-Bot v 0.5 By Smokey Loaded
}

menu nicklist {
  Owner
  .Set $1 As Owner: set %owner $1 | echo Owner is now $1 | msg $1 You are now the owner
  .Revoke Ownership: unset %owner | echo Ownership Removed from $1  | msg $1 Ownership Removed
}
menu channel {
  Home Channel
  .Set $chan As Home Channel: set %home $chan | echo Home Channel is now $chan | msg $chan $chan Is now the home channel
  .Unset $chan As Home Channel: unset %home | echo Home Channel unset  | msg $chan $chan Is no longer the home channel
  Home Server
  .set $network as Home Server: set %home_network $1 | echo Home Network is now $1
  .Unset $network as Home Server: unset %home_network  | echo Home Network unset.
}
on *:NICK: {
  if ($nick == %owner) {
    unset %owner
    set %owner $newnick
  }
}

Comments

Sign in to comment.
fire_wizard1   -  Nov 30, 2008

i think something like auser would be better then letting anyone use it, that way no one can use it that you dont want to. i already saw that as soon as i saw the script. not trying to be mean, just helpfull, and sry if i offended you bro.

 Respond  
AHBARAR   -  Jun 03, 2007

look man all u have to do is set levels in the bot so no 1 can order him than the ppl who got tht levels u understand me >:)

 Respond  
CaRe_Taker   -  Jun 05, 2006

k
?

 Respond  
Smokey   -  Jun 04, 2006

easy fix.. let me make this into a whole 10 file bot

 Respond  
CaRe_Taker   -  Jun 04, 2006

well still any one Can be op\'d
lol
not a good idea

 Respond  
Smokey   -  Jun 04, 2006

dont need it here.

 Respond  
noMen   -  Jun 04, 2006

This if will not do what you expect:

   if (# isin $1-) {

This if will match when somebody mentions YOUR room, not A room with the # character. You should use:

   if (# !isin $1-) && ($chr(35) isin $1-) {

Furthermore, I like simple scripting too, but it is lame if you don\'t even use \"elseif\".

 Respond  
Smokey   -  Jun 04, 2006

Well, its designed to be used with channel services such as L,Q or Chanserv

Good for amateurs, but scripting is lame (sorry)
Why make it to complex for people to learn from?

 Respond  
CaRe_Taker   -  Jun 04, 2006

So pretty much any one can be opped with this bot ?
not a good idea
lol
you could have an acceptance list of people that you actually want op\'d :)
other than that not to bad

 Respond  
Noutrious   -  Jun 04, 2006

Good for amateurs, but scripting is lame (sorry)

 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.