Fire-Fox wrote: ...
then the bot should make the user join a support channel
or whatever message that you wish to convey to the user that did !help .Hello. Please join #someChanName and post your question there. That's the channel for help.
Code: Select all
bind pub -|- !help Pub:Sajoin:SupportChan
proc Pub:Sajoin:SupportChan {nick host hand chan text} {
set text [regsub -all -- {\s{2,}} [string trim [stripcodes * $text]] { }]
set SupChan #SupChan
if {![onchan $nick $SupChan]} { putnow "SAJOIN $nick $SupChan" }
}
Code: Select all
set helpchan "#help"
bind pub -|- "!help" sapubhelp
proc sapubhelp {nick uhost handle chan text} {
if {![string match -nocase $chan $::helpchan] && ![onchan $nick $::helpchan]} {
putserv "SAJOIN $nick $::helpchan"
}
}