Code: Select all
bind kick - * report:kick
proc report:kick {nick uhost hand chan targ reason} {
if {[isbotnick $targ] && [botonchan #reportchan]} {
puthelp "privmsg #reportchan :I was kicked from $chan by $nick at [ctime [unixtime]]"
}
}
Code: Select all
#This is the Script to Oper your bot
bind evnt - init-server oper:yourself
proc oper:yourself {type} {
global botnick
putserv "oper accname accpass"
putserv "mode $botnick +s"
}