This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
-
Feanixxx
- Voice
- Posts: 23
- Joined: Sun Jul 27, 2003 11:30 am
Post
by Feanixxx »
Hi all
I currently run a script that uses pubm to look in the channel text for certain key words and acts accordingly i.e.
bind pubm - "% *hello*" Greeting
will cause the bot to greet if anyone says "Hello".
I would like to also cature and parse the /me action line as well, for instance if someone uses "/me says Hello".
I've read thru all the bindings but cannot find one to do this.
Any help would be most welcome
Thanks
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
bind ctcp - ACTION action:hello
then catch the word "Hello" from the $arg, example:
if {[string match [string tolower $arg] "% *hello*"]} { #whatever }
-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
In this case drop the "%".
Once the game is over, the king and the pawn go back in the same box.
-
Sir_Fz
- Revered One
- Posts: 3794
- Joined: Sun Apr 27, 2003 3:10 pm
- Location: Lebanon
-
Contact:
Post
by Sir_Fz »
yes

-
Feanixxx
- Voice
- Posts: 23
- Joined: Sun Jul 27, 2003 11:30 am
Post
by Feanixxx »
Ah, it was within the CTCP bind!
Thank you very much both of you
