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 

pubm binding question

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


Joined: 26 Sep 2008
Posts: 2

PostPosted: Fri Sep 26, 2008 3:03 am    Post subject: pubm binding question Reply with quote

I'm trying to bind a command to run everytime someone asks a question.

bind pubm - *?* qot_random

This should run qot_random everytime someone posts a line of text that contains a question mark correct?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Sep 26, 2008 7:40 am    Post subject: Reply with quote

Theoretically, this would also trigger if the channel-name itself contains a ?, although I do not remember if the rfc1459/irc protocols do support this. Of course, your eggdrop would have to join such a channel in the first place to receive messages from such channels..

Strictly however, you should use something like below to have the behaviour you described:
Code:
bind pubm - "% *?*" qot_random

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
cryolithic
Voice


Joined: 26 Sep 2008
Posts: 2

PostPosted: Fri Sep 26, 2008 10:44 pm    Post subject: Reply with quote

Hmm, that's what I thought. I found the form you mention as well, and neither seem to be working for me. Nothing's coming up in any logs or in the console itself. It only seems to fire when the ? is the *only* thing on the line.
Back to top
View user's profile Send private message
SpiKe^^
Owner


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

PostPosted: Sun Sep 28, 2008 12:57 am    Post subject: Reply with quote

try this:

Code:
bind pubm - "% *\?*" qot_random
Back to top
View user's profile Send private message Visit poster's website
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