its a chatbot btw, i want it to chat whenever someone says something in the channel, i figured * would work as a wild card because it talks fine in a pm, and the one for the pm is
bind msgm - "*" PrivateMSG
anyone know what it is? or know where i can find out?
Um I dont want to be offensive but this is a mirc Scripts forum not tcl, Im sure if you searched google you could find a forum better suited for you needs.
## Triggers start.
bind pub -|- "brb" pub_brb
bind pub -|- "lol" pub_lol
## Triggers end
## Respsonse start.
# random brb proc
proc pub_brb {nick uhost hand chan $ranbrb} {
global ranbrb
if [rand 2] {
putchan $chan "[lindex $ranbrb [rand [llength $ranbrb]]] $nick"
}
return 1
}
# random responses to the word "brb"
set ranbrb {
"ok"
"where you going?"
"me too, smoke time!"
"when you coming back. miss ya already! ;)"
}
# random lol proc
proc pub_lol {nick uhost hand chan $ranlol} {
global ranlol
if [rand 2] {
putchan $chan "[lindex $ranlol [rand [llength $ranlol]]]"
}
return 1
}
# random responses to the word "lol"
set ranlol {
"LOL thats funny!"
"hahaha"
"lol damn!"
"its not that funny :)"
"I don't think it's that funny lol"
"hehehe"
"HEY! don't laugh at me"
}
there you have a cupple of examples.. everything is binded. so you cant have it to bind * . edit the stuff you have here, then add your own random replyes, i made it random so you see how that works too.. if you want the bot to answer on /msg, then use "bind msg" insetad of pub.. gl ..
if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
thx for the help all, i got it, tried using bind pubm - "*" PublicMSG, instead of bind pub - "*" PublicMSG, and it works, got it working right after i posted it on egghelp.org