This is my script:
Code: Select all
setudef flag help
bind pub - !help help
proc help {nick host hand chan rest} {
puthelp "privmsg $chan :blablabla"
}
Code: Select all
setudef flag help
bind pub - !help help
proc help {nick host hand chan rest} {
puthelp "privmsg $chan :blablabla"
}
Code: Select all
bind pub - !help help
proc help {nick host hand chan rest} {
if {$chan =="#mychannel"} {
puthelp "privmsg $chan :blablabla"
}
}
You need to check if the channel is set to +help.darton wrote:Hello!
This is my script:The bot is listened on more than one channel. And I want that it only answers on one of these channels. So I insert "setudef flag help" in my script. But now the bot still anwers in every channel. What do I have to add to my script that it works.Code: Select all
setudef flag help bind pub - !help help proc help {nick host hand chan rest} { puthelp "privmsg $chan :blablabla" }
Code: Select all
if {[channel get $chan help]} {
puthelp "privmsg $chan :blablabla"
}
Code: Select all
bind pub - !help help
proc help { nickname hostname handle channel arguments } {
if {[string equal -nocase $channel "#your_channel"]} {
putserv "privmsg $channel :your text!"
}
}