mIRC Home    About    Download    Register    News    Help

Print Thread
#99959 08/10/04 12:41 AM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
this is what i got

bind pub - "*" PublicMSG

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?

#99960 08/10/04 03:27 AM
Joined: Mar 2004
Posts: 540
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Mar 2004
Posts: 540
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.

#99961 08/10/04 07:14 AM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You might want to try www.egghelp.org - they have TCL Scripts and a forum for TCL Scripts, and I assume to ask your questions too smile

Regards,


Mentality/Chris
#99962 08/10/04 11:07 AM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Code:
## 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,.) }
#99963 08/10/04 01:56 PM
Joined: Sep 2004
Posts: 85
G
Babel fish
OP Offline
Babel fish
G
Joined: Sep 2004
Posts: 85
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

Last edited by Gameaddix; 08/10/04 01:56 PM.

Link Copied to Clipboard