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
}
}
}
}
}
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
}
}
}
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
}
}
}