Need some help to create get back trigger
i have this script but i'm lost now, i don't now what i have to do

someone plz help me
sorry for my english
Code: Select all
puthelp "NOTICE $nick :!help for commands"
Code: Select all
if {$chan == "#MYCHANNEL"} {
Code: Select all
if {[string match -nocase #mychannel $chan]} {
Yes that if you run /msg G help on Qnet.metroid wrote:What he is aiming for is a direct copy of Quakenet's help bot interface.
Being able to go back and forth with the help and it's topics.
Ok, i guess i need to find a new solutionmetroid wrote:This is however hard in TCL and it requires alot more work than what you have right there
Code: Select all
##########################################################################
bind pub - !help proc:helpstuff
proc helpstuff {nick uhost hand chan text} {
set text [split $text]
if {[lindex $text 0] == ""} {
puthelp "PRIVMSG $nick :This is the default help, in english"
puthelp "PRIVMSG $nick :You can type !help swedish, !help german, !help support, !help faq, etc etc"
} elseif {[lindex $text 1] == "german"} {
# This is where german text would be
} elseif {[lindex $text 1] == "swedish"} {
# this is where swedish text would be
} elseif {([lindex $text 1] == "faq")
if {[lindex $text 2] == ""} {
# here you can make subcategories for "faq" questions
puthelp "PRIVMSG $nick :Please pick a category:"
puthelp "PRIVMSG $nick :!help faq 1 - Category 1 stuff"
puthelp "PRIVMSG $nick :!help faq 2 - Category 2 stuff"
} elseif {[lindex $text 2] == "1"} {
puthelp "PRIVMSG $nick :FAQ Category 1 answers here"
} elseif {[lindex $text 2] == "2"} {
puthelp "PRIVMSG $nick :FAQ Category 2 answers"
}
}
}
Code: Select all
[12:56:39] (MYBOT) [12:56] Tcl error [addinfo]: can't read "nextinfo(BB@whocare.org)": no such variable
[12:56:39] (MYBOT) [12:56] [BB!BB@whocare.org] !help german
Code: Select all
##########################################################################
bind pub - !help helpstuff
proc helpstuff {nick uhost hand chan text} {
set text [split $text]
if {[lindex $text 0] == ""} {
puthelp "PRIVMSG $nick :This is the default help, in english"
puthelp "PRIVMSG $nick :You can type !help swedish, !help german, !help support, !help faq"
} elseif {[lindex $text 1] == "german"} {
puthelp "PRIVMSG $nick :German stuff"
#This is where german text would be
} elseif {[lindex $text 1] == "swedish"} {
puthelp "PRIVMSG $nick :Swedish stuff"
#this is where swedish text would be
} elseif {[lindex $text 1] == "faq"} {
if {[lindex $text 2] == ""} {
#here you can make subcategories for "faq" questions
puthelp "PRIVMSG $nick :Please pick a category:"
puthelp "PRIVMSG $nick :!help faq 1 - Category 1 stuff"
puthelp "PRIVMSG $nick :!help faq 2 - Category 2 stuff"
} elseif {[lindex $text 2] == "1"} {
puthelp "PRIVMSG $nick :FAQ Category 1 answers here"
} elseif {[lindex $text 2] == "2"} {
puthelp "PRIVMSG $nick :FAQ Category 2 answers"
}
}
}
Code: Select all
####################
bind pub - !help helpstuff
bind msg * german
bind msg * swedish
bind msg * faq
proc helpstuff {nick uhost hand chan text} {
set text [split $text]
if {[lindex $text 0] == ""} {
puthelp "PRIVMSG $nick :This is the default help, in english"
puthelp "PRIVMSG $nick :You can type !help swedish, !help german, !help support, !help faq"
} elseif {[lindex $text 1] == "german"} {
puthelp "PRIVMSG $nick :GERMAN FAQ, select a NR and enter"
puthelp "PRIVMSG $nick :1) "
puthelp "PRIVMSG $nick :2) "
puthelp "PRIVMSG $nick :3) "
} elseif {[lindex $text 1] == "swedish"} {
puthelp "PRIVMSG $nick :SWEDISH FAQ, select a NR and enter"
puthelp "PRIVMSG $nick :1) "
puthelp "PRIVMSG $nick :2) "
puthelp "PRIVMSG $nick :3) "
} elseif {[lindex $text 1] == "faq"} {
puthelp "PRIVMSG $nick :FAQ select a NR and enter"
puthelp "PRIVMSG $nick :1) "
puthelp "PRIVMSG $nick :2) "
puthelp "PRIVMSG $nick :3) "
if {[lindex $text 2] == ""} {
#here you can make subcategories for "faq" questions
puthelp "PRIVMSG $nick :Please pick a category:"
puthelp "PRIVMSG $nick :!help faq 1 - Category 1 stuff"
puthelp "PRIVMSG $nick :!help faq 2 - Category 2 stuff"
} elseif {[lindex $text 2] == "1"} {
puthelp "PRIVMSG $nick :FAQ Category 1 answers here"
} elseif {[lindex $text 2] == "2"} {
puthelp "PRIVMSG $nick :FAQ Category 2 answers"
}
}
}