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

Help for those learning Tcl or writing their own scripts.
Post Reply
E
Etni
Voice
Posts: 4
Joined: Fri Nov 23, 2007 5:31 am

Bind question (how to make bot recognize its own lines)

Post by Etni »

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. :)

Cheers,
Etni
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

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
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
E
Etni
Voice
Posts: 4
Joined: Fri Nov 23, 2007 5:31 am

Post by Etni »

Hmm. I'll look into that. Thanks for the tip!
Post Reply