Simple Clan Bot

By aeros on Aug 20, 2005

I think the script is self explainitory :O
If you don't know how to use it.. don't use it.

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Simple Clan Bot v.1.0 By aErOs
;;Enjoy!
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

on *:JOIN:#:{ notice $nick Hi $nick $+ ! Welcome to $chan $+ , you may use the following commands: !Leagues [] !Roster [] !Sponsors [] !News [] !Matches [] !Starters [] !Servers [] !Website } 

on *:TEXT:!topic:#:{
  if ($nick isop $chan) {
    .topic $chan $2- | notice $nick Your channel topic is now: $2-
  }
}

on *:TEXT:!addcommands:#:{
  if ($nick isop $chan) {
  set %commands $2- | notice $nick Your Commands are now: %commands }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addservers*:#:{
  if ($nick isop $chan) {
  set %servers $2- | notice $nick Your Servers are now: %servers }
  else { notice $nick You must have OP access in the channel! }

}
on *:TEXT:!addstarters*:#:{
  if ($nick isop $chan) {
  set %starters $2- | notice $nick Your Starters are now: %starters }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addroster*:#:{
  if ($nick isop $chan) {
  set %roster $2- | notice $nick Your Roster is now: %roster }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addsponsors*:#:{
  if ($nick isop $chan) {
  set %sponsors $2- | notice $nick Your Sponors are now: %sponsors }
  else { notice $nick Error,only level 200+ can set this command }
}
on *:TEXT:!addsite*:#:{
  if ($nick isop $chan) {
  set %wsite $2- | notice $nick Your Websites are now: %wsite }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addleagues*:#:{
  if ($nick isop $chan) {
  set %leagues $2- | notice $nick Your Clan Leagues are now: %leagues }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addnews*:#:{
  if ($nick isop $chan) {
  set %news $2- | notice $nick Your Clan News is now: %news }
  else { notice $nick You must have OP access in the channel! }
}
on *:TEXT:!addmatches*:#:{
  if ($nick isop $chan) {
  set %matches $2- | notice $nick Your Matches are now: %matches }
  else { notice $nick You must have OP access in the channel! }
}

on *:TEXT:*:#:{
  if ($1 == !Commands) { notice $nick %commands }
  elseif ($1 == !Leagues) { notice $nick %leagues }
  elseif ($1 == !News) { notice $nick %news }
  elseif ($1 == !Roster) { .notice $nick %roster }
  elseif ($1 == !matches) { .notice $nick %matches }
  elseif ($1 == !website) { notice $nick %wsite }
  elseif ($1 == !Sponsors) { notice $nick %sponsors }
  elseif ($1 == !Starters) { notice $nick %starters }
  elseif ($1 == !Servers) { notice $nick %servers }
}

on *:TEXT:*:#:{
  if ($nick isop $chan) {
    elseif ($1 == !op) { .mode $chan +o $2 }
    elseif ($1 == !deop) { .mode $chan -o $2 }
    elseif ($1 == !voice) { .mode $chan +v $2 }
    elseif ($1 == !devoice) { .mode $chan -v $2 }
    elseif ($1 == !kick) { .kick $chan $2 }
    elseif ($1 == !ban) { ban -k $chan $2 }
    elseif ($1 == !unban) { .mode $chan -b $2 }
  }
}

Comments

Sign in to comment.
Jethro   -  Jan 01, 2010

The truth of the matter is, this script could've been combined into one text event, instead of fragmented ones per command. For the flooding issue you mentioned, Lenooox, is that this script didn't have a flood protection implemented to begin with.

 Respond  
Lenooox   -  Jan 01, 2010

nice script , but my bot got exes flood everytime :(
ICB0t quits Excess Flood

 Respond  
Aaron   -  Jan 10, 2007

its awesome :D

 Respond  
aeros   -  Aug 22, 2005

well.. if it doesn\'t check if $nick isop $chan .. then anyone can use it. Anyone can use the !op !deop cmds

 Respond  
Corne   -  Aug 22, 2005

On !op/deop... commands, shouldnt be if $me isop # instead of if $nick isop $chan or both of them ? its useless to check if the nickname is op if the bot aint op.

 Respond  
DeathRyder082   -  Aug 21, 2005

One error

  • elseif ($1 == !deop) { .mode $chan -0 $2 }
    Other than that it looks good.
 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.