<-- i tested this nd put a #channel and it worksuser wrote:X will do the kicking, not the bot (:P), and it needs to know what channel you want to kick the person from (/msg X KICK <#channel> <nick> <reason>)laynuks wrote:bot script will execute the line putserv "PRIVMSG X :kick $nick" and kick the op right?
<-- hello here it isSir_Fz wrote:also, you do a /msg X :verify nick or whatever to check what X replies to you (notice) so we can create a notice bind based on that reply.
Code: Select all
set thechannel "#channel"
bind kick - * kick:remove
proc kick:remove { nick uhost hand chan targ rsn } {
if {$targ == $::botnick && [string tolower $chan] == [string tolower $::thechannel]} {
putserv "PRIVMSG X :verify $nick"
}
}
bind notc - "* logged in as *" check_verify
proc check_verify {nick host hand arg dest} {
if {[string equal $dest $::botnick]} {
putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]"
}
}
Hi Sir_Fz Thank You it worksSir_Fz wrote:this should do fine.Code: Select all
set thechannel "#channel" bind kick - * kick:remove proc kick:remove { nick uhost hand chan targ rsn } { if {$targ == $::botnick && [string tolower $chan] == [string tolower $::thechannel]} { putserv "PRIVMSG X :verify $nick" } } bind notc - "* logged in as *" check_verify proc check_verify {nick host hand arg dest} { if {[string equal $dest $::botnick]} { putserv "PRIVMSG X :remuser $::thechannel [lindex [split $arg] end]" } }