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.

Bind pub with more than one word

Help for those learning Tcl or writing their own scripts.
Post Reply
s
silentziler
Voice
Posts: 11
Joined: Wed Sep 09, 2015 10:57 am

Bind pub with more than one word

Post by silentziler »

So I may be a newb, ive done research and have tried a few things already to no avail.

I would like to have a 'bind pub' with two words for a trigger, it currently looks like this:

bind pub - "!nfl" get_sched

I would like to have it triggered with:

bind pub - "!nfl thurs" get_sched

thanks!
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Bind pub with more than one word

Post by willyw »

silentziler wrote: ...
I would like to have it triggered with:

bind pub - "!nfl thurs" get_sched
Go here:
http://www.eggheads.org/support/egghtml ... mands.html

and find:
bind pubm

and read about that one.

Experiment with something like:
bind pubm - "!nfl thurs*" get_sched

and see what happens.

I hope this helps.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
s
silentziler
Voice
Posts: 11
Joined: Wed Sep 09, 2015 10:57 am

Re: Bind pub with more than one word

Post by silentziler »

Thanks for the suggestion.

So I tried what you recommended and the pubm doesn't seem to work.
I can type anything after !nfl and still trigger the command.

I might have to find a work around.
User avatar
SpiKe^^
Owner
Posts: 831
Joined: Fri May 12, 2006 10:20 pm
Location: Tennessee, USA
Contact:

Post by SpiKe^^ »

pubm does work just fine:)

You must restart the bot to remove the previously set binds you had.
Rehashing will not clear them.
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

SpiKe^^ wrote: ...
You must restart the bot to remove the previously set binds you had.
Rehashing will not clear them.

silenziler:
I forgot to mention this. Sorry.
Spike^^ intuitively realized the problem.

Spike^^: Thanks for jumping in, so silentziler didn't have to wait for me to re-appear here.

silentziler: In the partyline, learn to use the
.binds
command. It will list current binds. You can search with it also.
Using this exercise as an example, do:
.binds *nfl*
and all binds with "nfl" in them will be listed. If I had remembered to advise you to do this, and if you had simply rehashed, you would have created a new bind, and both it and the original bind would be listed - which is exactly what Spike^^ mentioned. :)

After you .restart, take a moment and do .binds *nfl* , just to confirm that you have only one bind related to your current experiment.

Note: When listing binds, the report includes a Hit counter. Keep it in mind, as sometimes that too can be very useful info when figuring out where things are not going as expected.

Let us know how it goes.
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
s
silentziler
Voice
Posts: 11
Joined: Wed Sep 09, 2015 10:57 am

Fixed!

Post by silentziler »

silenziler:
I forgot to mention this. Sorry.
Spike^^ intuitively realized the problem.

Spike^^: Thanks for jumping in, so silentziler didn't have to wait for me to re-appear here.

silentziler: In the partyline, learn to use the
.binds
command. It will list current binds. You can search with it also.
Using this exercise as an example, do:
.binds *nfl*
and all binds with "nfl" in them will be listed. If I had remembered to advise you to do this, and if you had simply rehashed, you would have created a new bind, and both it and the original bind would be listed - which is exactly what Spike^^ mentioned. :)

After you .restart, take a moment and do .binds *nfl* , just to confirm that you have only one bind related to your current experiment.

Note: When listing binds, the report includes a Hit counter. Keep it in mind, as sometimes that too can be very useful info when figuring out where things are not going as expected.

Let us know how it goes.
Okay that did the trick!
It worked after I added the channel and restarted lol

Thanks guys!
Post Reply