egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bind pub query

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
COBRa
Halfop


Joined: 04 Jan 2013
Posts: 49

PostPosted: Thu Nov 03, 2016 10:00 am    Post subject: Bind pub query Reply with quote

Hi guys looking for a little help if possible

A normal bind would look something like this

bind pub - 123 gorls

So 123 is the trigger word would I have to do something different if the trigger word had brackets ie

bind pub - [123] gorls

Hope I've explained it well enough

Thanks in advance
Back to top
View user's profile Send private message
SpiKe^^
Owner


Joined: 12 May 2006
Posts: 792
Location: Tennessee, USA

PostPosted: Thu Nov 03, 2016 11:37 am    Post subject: Reply with quote

Have you tried things like...

bind pub - {[123]} gorls

or..

bind pub - \[123\] gorls
_________________
SpiKe^^

Get BogusTrivia 2.06.4.7 at www.mytclscripts.com
or visit the New Tcl Acrhive at www.tclarchive.org
.
Back to top
View user's profile Send private message Visit poster's website
COBRa
Halfop


Joined: 04 Jan 2013
Posts: 49

PostPosted: Thu Nov 03, 2016 2:41 pm    Post subject: Reply with quote

Hi Spike

thx for the prompt reply yes ive tried both of those without success they give no tcl errors so wondering if you have anymore ideas plz
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Nov 03, 2016 10:46 pm    Post subject: Reply with quote

I think Spike's idea works.

Code:


bind pub - {[123]} gorls

proc gorls {nick uhost handle chan text} {

        putserv "privmsg $chan :test: $text"
}



works for me.
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Thu Nov 03, 2016 10:48 pm    Post subject: Reply with quote

This works too:

Code:


bind pub - \[123\] gorls


_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber