KidSnot's akick

By |[{K|dSn0t}]| on Sep 07, 2009

Yo, this is an akick script I made a few weeks ago, but just now thought of posting it on hawkee. First of all, I tried to make it on script, not 3 small but seperate scripts, but that didn't work. If you have any suggestions, please post! :D Your bot must have SOp access or whatever access level it is that can add akicks to the channel, just so you know.

Features
Adds akicks with the reason
Deletes akicks
Modifies a current akick

.akick nick silly goose! tricks are for kids!
.dakick nick
.makick nick Silly rabbit! tricks are for kids!

.akick !@.hsd1.fl.comcast.net silly goose! tricks are for kids!
.dakick
!@.hsd1.fl.comcast.net
.makick !@*.hsd1.fl.comcast.net Silly rabbit! tricks are for kids!

;; KIDSNOT'S AUTO AKICK SYSTEM ;;
on *:TEXT:.akick*:#: {
  if ($nick isop $chan) {
    if ($2 ischan) {
      cs akick $2 add $3 $4- {
        notice $nick $3 has been added to the akick list of $2 
      }
    }
  }
}
on *:TEXT:.dakick*:#: {
  if ($nick isop $chan) {
    if ($2 ischan) {
      cs akick $2 del $3 {
        notice $nick $3 has been deleted from the akick list of $2
      }
    }
  }
}
on *:TEXT:.makick*:#: {
  if ($nick isop $chan) {
    if ($2 ischan) {
      cs akick $2 del $3 {
        cs akick $2 add $3 $4- {
          notice $nick $3 has been modified in the akick list of $2
        }
      }
    }
  }
}

Comments

Sign in to comment.
Korvin   -  Sep 10, 2009

Something like that should work, "Untested"
the final else will trigger everytime anything is said...
$2 ison $chan isnt really needed because if $nick isop $chan then they're obviously on the chanfacepalm.

 Respond  
Korvin   -  Sep 10, 2009
on *:TEXT:*:#: {
  if ($nick isop $chan) && ($2 ischan) {
    if ($1 == .akick) {
      cs akick $2 add $$3 $4-
      notice $nick $3 has been added to the akick list of $2 
    }
    if ($1 == .dakick) {
      cs akick $2 del $3
      notice $nick $3 has been deleted from the akick list of $2
    }
    if ($1 == .makick) {
      cs akick $2 del $3
      cs akick $2 add $3 $4-
      notice $nick $3 has been modified in the akick list of $2
    }
  }
}
 Respond  
sunslayer   -  Sep 08, 2009

well looks like i lost the game...

gf interwebz

 Respond  
Jethro   -  Sep 08, 2009

sunslayer, you know that $2 is for the triggered nick, right? The "$2 ison $chan" is to make sure the nick you choose to akick is inside the channel. As for nick isop $chan, I'm sure you know by heart.

 Respond  
aussiedags   -  Sep 08, 2009

Re-read it :)

 Respond  
sunslayer   -  Sep 08, 2009
  if ($nick isop $chan) && ($2 ison $chan) {

$2 ison $chan isnt really needed because if $nick isop $chan then they're obviously on the chan

 Respond  
aussiedags   -  Sep 08, 2009
on *:TEXT:*:#: {
  if ($nick isop $chan) && ($2 ison $chan) {
    if ($1 == .akick) {
      commands
    } 
    elseif ($1 == .dakick) {
      commands
    }
    else {
      if ($1 == .makick) {
        commands
      }
    } 
  }
}

Something like that should work, "Untested"

 Respond  
|[{K|dSn0t}]|   -  Sep 07, 2009

tried it, didn't work.

 Respond  
Jethro   -  Sep 07, 2009

How about this:

on @*:TEXT:*:#: {
  if ($nick isop $chan) {
    if ($strip($1) == .akick) && ($2 ison $chan) {
      cs akick $v2 add $v1 $3- 
      notice $nick $v1 has been added to the akick list of $v2 
    }
    if ($strip($1) == .dakick) && ($2 ison $chan) {
      cs akick $v2 del $v1
      notice $nick $v1 has been deleted from the akick list of $v2
    }
    if ($strip($1) == .makick) && ($2 ison $chan) {
      cs akick $v2 del $v1 | cs akick $v2 add $v1 $3-
      notice $nick $v1 has been modified in the akick list of $v2
    }
  }
}
 Respond  
|[{K|dSn0t}]|   -  Sep 07, 2009

I can try again to fix that though, and if it works, I'll edit it. :)

 Respond  
|[{K|dSn0t}]|   -  Sep 07, 2009

It says in the intro that it didn't work when /I/ tested it without all the text triggers. :P

 Respond  
Jethro   -  Sep 07, 2009

Not trying to be critical, but I've always wondered why some people like to use more than one text event per trigger.

 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.