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.

how to grab text from a channl and put it into list or var

Help for those learning Tcl or writing their own scripts.
Post Reply
l
l8night
Voice
Posts: 12
Joined: Mon Dec 17, 2007 8:43 pm

how to grab text from a channl and put it into list or var

Post by l8night »

Hi,

Can someone tell me how to grab text from a channel and throw into a variable or a list? Say a command outputs " there are 5 left"
and I use the pubm event to know when that happens, how do i then grab that output and put it into variable.


Regards Jeff
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

PUBM (stackable)
bind pubm <flags> <mask> <proc>
procname <nick> <user@host> <handle> <channel> <text>

Description: just like MSGM, except it's triggered by things said
on a channel instead of things /msg'd to the bot. The mask is
matched against the channel name followed by the text and can
contain wildcards. If the proc returns 1, Eggdrop will not log
the message that triggered this bind. PUBM binds are processed
before PUB binds. If the exclusive-binds setting is enabled,
PUB binds will not be trigged by text that a PUBM bind has
already handled.
Post Reply