Kick Counter For Bot

By blitzz on Jul 18, 2009

Here some simple kick counter for your bot..But you can use it by yourself..What this thing do is it will count every time someone getting kicked from the channel..

Ex:

<@Dude77> !reset count
<@MyBot> All counts have been deleted. Now begin from 0.

  • BidDaddy was kicked by Dude77 (testing)
    <@MyBot> Ops here we go..Somebody getting kicked from #EvilDead - Current total - 1
    <@MyBot> Reason for kicking - testing
    <@Dude77> !total
    <@MyBot> Current total = 1

To command !reset count, you need at least Aop so the bot will follow your order.

;reset the count to 0 again
on *:text:!reset count*:#: { if ($nick isop $chan) {
    set %blitzz 0 | msg $chan 10All counts have been deleted. Now begin from4 0.
  }
  else { notice $nick Access denied
  }
}
;how much kick the bot capture
on *:text:*:#: {
  if ($1 == !total) { msg $chan 10Current total =4 %blitzz
  }
}
;telling people in channel what was happen
on !@*:kick:#: {
  inc %blitzz 1
  msg $chan 10Ops here we go..Somebody getting kicked from7 $chan 1- Current total -4 %blitzz
  msg $chan 10Reason for kicking -1 $1-
}

Comments

Sign in to comment.
Bielie   -  Apr 22, 2010

hmm i cant. I usualy do though. I am kinda on school rite now. No rights to install MIRC... :(

 Respond  
napa182   -  Apr 21, 2010

Bielie on ur rewrite why did you turn their on kick event into a on text event? um you should really test ur rewrites before you post them as comments =/

 Respond  
Bielie   -  Apr 21, 2010
on *:text:!reset count:#: { if ($nick isop $chan) {
    set %blitzz 0 | msg $chan The kicks have been reseted to zero.
  }
  else { notice $nick Error: You have to be a op to use this command.
  }
}

on *:text:!kicks:#: {
if ($nick isop $chan) { 
notice $nick Error: You have to be a op to use this command. | return }

  if ($1 == !total) { msg $chan Current kicks served: %blitzz
  }
}

on *:kick:#: { 
  inc %blitzz  $+ #
}
 Respond  
blitzz   -  Jul 20, 2009

:)

 Respond  
WorldDMT   -  Jul 20, 2009

that is cont kick for all chan together

better to do inc %blitzz $+ #

the msg chan every kick will be bad

 Respond  
blitzz   -  Jul 19, 2009

Ok fixed. Not realized before.

 Respond  
Jethro   -  Jul 18, 2009

on **!**:text::#: { <- you can't possibly trigger your own text, can you? The exclamation mark in front of the on text event is needless. But you can add it for your on kick event...that way it won't trigger upon kicking yourself:

on !@*:kick:#: {
 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.