
I have a pet cat written in mIrc that scans the text input and responds acordingly, with several hundred actions.
My girlfriend loves him, of course

This is the basic skeleton of the mirc script (just the one word and a couple of responses)
on 1:text:hello*:#: { /Greeting }
on 1:text:hiya*:#: { /Greeting }
alias Greeting {
/set %bt.rand $rand(1,2)
if (%bt.rand == 1) { .describe $chan purrs happily at $nick }
if (%bt.rand == 2) { .describe $chan gently headbutts $nick }
}
And this is what I've come up with so far to say hello as a CTTP Action:
bind pub - hello my_talk_handler
bind pub - Hello my_talk_handler
proc my_talk_handler {nick uhost hand chan text} {
putserv "PRIVMSG $chan :\001ACTION says Hello to $nick"
return 0
}
Can anyone point me any further in terms of using PUBM to get the whole text, parsing the text in TCL and so forth?
My lovelife is at serious risk over this ...........