jackster35-1 commented on a Page, Cool Ban+Kick For Bot  -  Aug 24, 2010

Well, you should try and make this a bit more better by putting brackets.
Heres what I'd do to the script:

on *:LOAD:*:{
  echo Please type /bn followed by your bot's nick. Thanks!
}
alias bn {
  /set %botnick $1
  echo Thanks, botnick's set to $1
}
on *:text:!cool *:#: {
  if ($2 ison $chan) {
    if ($me isop $chan) || ($me ishop $chan) {
      var %coolnick $2 $+ `
      /nick %coolnick
      /mode $chan +b $address($2,2)
      .timer 1 3 /kick $2 $chan Oh no you baned your self and kicked your self?!
      return %coolnick
      /nick %botnick
    }
  }
}

That would suit my bot :)

 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.