#onjoin voice with the right tag
bind join - "*" voice:nicks
proc voice:nicks {nick uhost hand chan} {
if {[botisop $chan] && ([string match "[11W]*" $nick])} {
pushmode $chan +v $nick
}
}
## nichchange with the right tag
bind nick - "*" voice:nickch
proc voice:nickch {nick uhost hand chan newnick} {
if {[botisop $chan] && ([string match "[11W]*" $newnick])} {
pushmode $chan +v $newnick
}
}
#onjoin voice with the right tag
bind join - "*" voice:nicks
proc voice:nicks {nick uhost hand chan} {
if {[botisop $chan] && ([string match "\[11W\]*" $nick])} {
pushmode $chan +v $nick
}
}
bind pub -|- !url show_url
bind pub -|- !contact show_contact
bind pub -|- !forums show_forums
bind pub -|- !staff show_staff
proc show_url {nick host hand chan text } {
putserv "NOTICE $nick : Visit us at www.mysitehere.com !!"
}
proc show_contact {nick host hand chan text } {
putserv "NOTICE $nick : You can contact me at my@email.com !!"
}
proc show_forums {nick host hand chan text } {
putserv "NOTICE $nick : Check out our forums at www.mysitehere.com/forums !!"
}
proc show_staff {nick host hand chan text } {
putserv "NOTICE $nick : the staff here, add more notices if you need"
}
you can have it send the info by pm simply by changing NOTICE with PRIVMSG
What kanibus wrote will work fine but you end up with loads and loads of binds on your bot i would suggest using something like this that will keep your binds down to a minimum.
bind pub - * triggers
proc triggers {nick uhost hand chan arg} {
set trigger [lindex [split $arg] 0]
switch -exact -- [string tolower $trigger] {
"!url" {
putserv "NOTICE $nick :Visit us at www.mysitehere.com !!"
}
"!contact" {
putserv "NOTICE $nick :You can contact me at my@email.com !!"
}
"!forums" {
putserv "NOTICE $nick :Check out our forums at www.mysitehere.com/forums !!"
}
"!staff" {
putserv "NOTICE $nick :the staff here, add more notices if you need"
}
default {
putserv "NOTICE $nick :Unknown command: $trigger"
}
}
}
hope this helps.
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born
you are missing a close-brace. Paste your trigger script in here so i can see it please
The lifecycle of a noob is complex. Fledgling noobs gestate inside biometric pods. Once a budding noob has matured thru gestation they climb out of their pod, sit down at a PC, ask a bunch of questions that are clearly in the FAQ, The Noob is born