When you say service bot do you meen you want your eggdrop to set mode +b username then send a command to your service bot as in botserv to do the kickAngel wrote:i need a tcl script fpr my eggdrop that kicks and bans user that do !list or ciao etc warez command
and another script w/c is the same but rather sends a msg to ther service bot and do the kicking and banning...
thanks a lot
Code: Select all
####################################################################
# #
# Based on BadWord.tcl by TheGhost and/or Rajeh Alharithi #
# #
# Stripped out most of the original, for basic kick on 'bad' words #
# #
# #
# Cobratek #
####################################################################
## The bad word list
bind pubm - "!list" badword
bind pub - "!list" badword
bind pubm - "@find" badword
bind pub - "@find" badword
bind pubm - "ciao" badword
bind pub - "ciao" badword
## Main script
proc badword {nick uhost hand chan rest} {
global botnick bword
if {([ matchattr $hand f ])} {
putserv "PRIVMSG $chan : $nick >:-| "
return 1
} else {
putserv "MODE $chan +b $nick"
putserv "PRIVMSG CHANSERV KICK $chan $nick : Freekin Warez kiddie"
return 0
}
}
putlog "!list kicker v0.1 loaded"
Code: Select all
## The bad word list
bind pubm - "!list" badword
bind pub - "!list" badword
bind pubm - "@find" badword
bind pub - "@find" badword
bind pubm - "ciao" badword
bind pub - "ciao" badword