Full bot

By Ahmed Zaggoudi on Apr 20, 2011

+Chan watch
+Commands (!op / !deop / !k / !kb / !bans / !unbans / !topic / !calc / !info #chan / !modes)
+Auto voice on join
+Auto kick if $nick changes any modes in channel
+Auto kick ban if $nick deop an opnick
+Auto kick if you kick me
+Ginving a msg if an user has join in the channel
+Giving msg on action
+Auto kick on change the topic of channel
+Auto op if $opnick had deop $opnick
+Auto kick ban for website or server IRC or badword (www.site.com/irc.server.net/fuck/...)
+Auto change the topic if an user changes it
+Auto change nick (!nick1 / !nick2 / !nick3 / !nick4) if you want other names of this bot
+Part all channel (!partall) and hop !hop
+!time : date + time
+!seen


[There are other commands write !help to see them]
note : Sorry of my bad English :$ .... I'm new here and i'm from morocco :$
if u have any problem :
E-mail : Xx.Mc-a7med.xX@live.fr
You can fine me in this server : irc.netirc-people.fr:6667 ( my nick-names are : AmytiX / MinoX / Ahmed ) :D
EnjoY !

####_Mode flag +B (bot)
on 1:connect:{
  mode $me +B
  join #Your_channel_here
}
####_Action+msg
on 1:JOIN:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[JOIN]14 $chan 4 $nick 7has joined into $chan
}
on 1:DEOP:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[DEOP]14 $chan 4 $nick 7deoped12 $opnick
}
on 1:VOICE:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[VOICE]14 $chan 4 $nick 7voiced12 $vnick
}
on 1:DEVOICE:#Your_channel_here:{
  if ($nick == $me) { halt } 
  msg $chan [ $+ $time $+ ] 10[Devoice]14 $chan 4 $nick 7devoiced12 $vnick
}
on 1:OP:#Your_channel_here:{
  msg $chan 10[ $+ $time $+ ] 10[OP]14 $chan 4 $nick 7oped12 $opnick
}
on 1:HELP:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan  10[ $+ $time $+ ] 10[HALFOP]14 $chan 4 $nick 7halfoped12 $hnick
}
on 1:DEHELP:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[DEHALFOP]14 $chan 4 $nick 7Dehalfoped12 $hnick
}
on 1:BAN:#Your_channel_here:{
  if ($nick == $me) { halt }  
  msg $chan 1410[ $+ $time $+ ] 10 10[BAN]14 $chan 4 $nick set mode12 $1- 
}
on 1:MODE:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10 10[MODE]14 $chan 4 $nick 7sets mode 12 $1-
}
on 1:Kick:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[KICK]14 $chan 4 $nick kicked $knick
}
on 1:PART:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[PART]14 $chan 4 $nick parted $chan
}
on *:topic:#Your_channel_here:{
  if ($nick == $me) { halt }
  msg $chan 10[ $+ $time $+ ] 10[TOPIC]14 $chan 4 $nick changed topic of channel
}
####_Chan Watch

on 1:LOAD:{
  echo -a Welcome to the Chan Watch System. 
  echo -a This is a script that watches what others do in your channel, so you will always know whats going on
}
on 1:START:{
  echo -a Chan Watch Active.
}
on 1:BAN:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10 10[BAN]14 $chan 4 $nick set mode12 $1- 
}
on 1:KICK:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels [ $+ $time $+ ] 10[KICK]14 $chan 4 $nick kicked $knick
}
on 1:VOICE:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[VOICE]14 $chan 4 $nick 7voiced12 $vnick
}
on 1:DEVOICE:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[Devoice]14 $chan 4 $nick 7devoiced12 $vnick
}
on 1:HELP:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels  10[ $+ $time $+ ] 10[HALFOP]14 $chan 4 $nick 7halfoped12 $hnick
}
on 1:DEHELP:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[DEHALFOP]14 $chan 4 $nick 7Dehalfoped12 $hnick
}
on 1:OP:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[OP]14 $chan 4 $nick 7oped12 $opnick
}
on 1:DEOP:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[DEOP]14 $chan 4 $nick 7deoped12 $opnick
}
on 1:DEOP:#:{
  if ($me isin $nick) { Halt }
  //window -n @Channels @Channels | aline @Channels 10[ $+ $time $+ ] 10[DEOP]14 $chan 4 $nick 7deoped12 $opnick
}
_____________________________________

Comments

Sign in to comment.
Ahmed Zaggoudi   -  Apr 21, 2011

ty ^^ , it's my first time I learn snippets IRC :$

 Respond  
troll   -  Apr 21, 2011

wherever you have
[ $time ]

etc, do [ $+ $time $+ ]
that'll get rid of the spaces.

 Respond  
Ahmed Zaggoudi   -  Apr 21, 2011

thank you so much ^_^

 Respond  
Jethro   -  Apr 20, 2011

Or you just combine them like so:

on !1:OP:#:fullbot
on !1:DEOP:#:fullbot
on !1:VOICE:#:fullbot
on !1:DEVOICE:#:fullbot
; more events go here

alias -l fullbot {
  goto $event
  :op
  msg $chan 10[ $time ] 10[OP]14 $chan 4 $nick 7oped12 $vnick
  window -n @Channels @Channels | aline @Channels 10[ $time ] 10[OP]14 $chan 4 $nick 7oped12 $opnick
  halt
  :deop
  msg $chan 10[ $time ] 10[DEOP]14 $chan 4 $nick 7deoped12 $vnick
  window -n @Channels @Channels | aline @Channels 10[ $time ] 10[DEOP]14 $chan 4 $nick 7deoped12 $opnick
  halt
  :voice
  msg $chan 10[ $time ] 10[VOICE]14 $chan 4 $nick 7voiced12 $vnick
  window -n @Channels @Channels | aline @Channels 10[ $time ] 10[VOICE]14 $chan 4 $nick 7voiced12 $vnick
  halt
  :devoice
  msg $chan 10[ $time ] 10[Devoice]14 $chan 4 $nick 7devoiced12 $vnick
  window -n @Channels @Channels | aline @Channels 10[ $time ] 10[Devoice]14 $chan 4 $nick 7devoiced12 $vnick
  halt

  ; another routine
  ; so on and so forth
}

The ! character by the events is the same as: if ($nick == $me) { halt }

 Respond  
Jethro   -  Apr 20, 2011

Not just mode event. I showed that as an exemplary demonstration. It goes for the rest of identical events. You should make a fine print indicating them as two separate codes (the portion on the top and bottom) and mention that they're to be placed in separate remotes, so they will work without a conflicting issue.

 Respond  
Ahmed Zaggoudi   -  Apr 20, 2011

Ok thnak's ^^
i remeved the last mode

 Respond  
Jethro   -  Apr 20, 2011

You can't have two identical events; you can only have one. Say you have:

on 1:MODE:#:{ blah }
on 1:MODE:#:{ blah blah }

The one on top will be acknowledged by mIRC, and the one below will be ignored.

 Respond  
Ahmed Zaggoudi   -  Apr 20, 2011

For me it's imprtant to give me your opinion/comments ^^

 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.