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 question (how to make bot recognize its own lines)

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


Joined: 23 Nov 2007
Posts: 4

PostPosted: Fri Sep 11, 2009 10:14 am    Post subject: Bind question (how to make bot recognize its own lines) Reply with quote

Hi all,

This may be a stupid question, but is there something similar to "bind pubm" that would include the bot's own channel messages?


The reason I'm asking this is because our irc-channel has a script ("toptod") that calculates words spoken daily, but since it's done using bind pubm, it ignores the bot's own words.

There are some tedious workarounds of course, such as putting some sort of calculation code to each script that makes the bot talk, analysing channel logs for statistics, or bringing another bot to the channel, but I'm guessing there must be an easier way. Besides, if I could get a script to recognize words produced by other scripts in the same bot, it might have other fun applications. Smile

Cheers,
Etni
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Fri Sep 11, 2009 11:09 am    Post subject: Reply with quote

Possibly a RAW bind using keyword PRIVMSG rather than a numeric would achieve what you need but it would require experimenting to confirm. Channel chat is simply PRIVMSG to #channelname.
_________________
I must have had nothing to do
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Sep 11, 2009 1:33 pm    Post subject: Reply with quote

The problem here, which has been discussed previously on this forum, is that irc-servers won't echo the PRIVMSG (nor NOTICE) back to the sender. As such, not even raw bindings will do you any good.

There is a hack/patch somewhere on the forum that enables "bot-talk" to be logged, this could probably be modified to trigger bindings as well.
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Etni
Voice


Joined: 23 Nov 2007
Posts: 4

PostPosted: Fri Sep 11, 2009 1:40 pm    Post subject: Reply with quote

Hmm. I'll look into that. Thanks for the tip!
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